summaryrefslogtreecommitdiffstats
path: root/kopete/kopete
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete')
-rw-r--r--kopete/kopete/addaccountwizard/addaccountwizard.cpp2
-rw-r--r--kopete/kopete/addaccountwizard/addaccountwizardpage1.ui10
-rw-r--r--kopete/kopete/addaccountwizard/addaccountwizardpage2.ui8
-rw-r--r--kopete/kopete/addaccountwizard/addaccountwizardpage3.ui8
-rw-r--r--kopete/kopete/addcontactwizard/addcontactwizard.cpp6
-rw-r--r--kopete/kopete/addcontactwizard/addcontactwizard_base.ui24
-rw-r--r--kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp4
-rw-r--r--kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui14
-rw-r--r--kopete/kopete/chatwindow/chatmemberslistwidget.cpp14
-rw-r--r--kopete/kopete/chatwindow/chatmemberslistwidget.h2
-rw-r--r--kopete/kopete/chatwindow/chatmessagepart.cpp90
-rw-r--r--kopete/kopete/chatwindow/chattexteditpart.cpp14
-rw-r--r--kopete/kopete/chatwindow/chatview.cpp114
-rw-r--r--kopete/kopete/chatwindow/chatview.h2
-rw-r--r--kopete/kopete/chatwindow/emoticonselector.cpp6
-rw-r--r--kopete/kopete/chatwindow/kopetechatwindow.cpp80
-rw-r--r--kopete/kopete/chatwindow/kopetechatwindow.h2
-rw-r--r--kopete/kopete/chatwindow/kopetechatwindowstyle.cpp4
-rw-r--r--kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp2
-rw-r--r--kopete/kopete/chatwindow/kopetechatwindowstylemanager.h6
-rw-r--r--kopete/kopete/chatwindow/kopeteemailwindow.cpp44
-rw-r--r--kopete/kopete/chatwindow/krichtexteditpart.cpp22
-rw-r--r--kopete/kopete/chatwindow/tests/chatwindowstyle_test.cpp4
-rw-r--r--kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp26
-rw-r--r--kopete/kopete/config/accounts/kopeteaccountconfig.cpp4
-rw-r--r--kopete/kopete/config/accounts/kopeteaccountconfigbase.ui14
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig.cpp14
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui2
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig_colors.ui16
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig_contactlist.ui18
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig_emoticons.ui6
-rw-r--r--kopete/kopete/config/appearance/emoticonseditdialog.cpp10
-rw-r--r--kopete/kopete/config/appearance/emoticonseditwidget.ui4
-rw-r--r--kopete/kopete/config/appearance/tooltipeditwidget.ui12
-rw-r--r--kopete/kopete/config/avdevice/avdeviceconfig.cpp2
-rw-r--r--kopete/kopete/config/avdevice/avdeviceconfig_videoconfig.ui16
-rw-r--r--kopete/kopete/config/behavior/behaviorconfig.cpp2
-rw-r--r--kopete/kopete/config/behavior/behaviorconfig_chat.ui12
-rw-r--r--kopete/kopete/config/behavior/behaviorconfig_events.ui16
-rw-r--r--kopete/kopete/config/behavior/behaviorconfig_general.ui2
-rw-r--r--kopete/kopete/config/behavior/kopeteawayconfigbase.ui14
-rw-r--r--kopete/kopete/config/identity/globalidentitiesmanager.cpp2
-rw-r--r--kopete/kopete/config/identity/kopeteidentityconfig.cpp8
-rw-r--r--kopete/kopete/config/identity/kopeteidentityconfigbase.ui30
-rw-r--r--kopete/kopete/config/plugins/kopetepluginconfig.cpp2
-rw-r--r--kopete/kopete/contactlist/customnotificationprops.cpp4
-rw-r--r--kopete/kopete/contactlist/customnotifications.ui6
-rw-r--r--kopete/kopete/contactlist/kabcexport_base.ui6
-rw-r--r--kopete/kopete/contactlist/kopeteaddrbookexport.cpp2
-rw-r--r--kopete/kopete/contactlist/kopeteaddrbookexport.h2
-rw-r--r--kopete/kopete/contactlist/kopetecontactlistview.cpp56
-rw-r--r--kopete/kopete/contactlist/kopetegroupviewitem.cpp4
-rw-r--r--kopete/kopete/contactlist/kopetegvipropswidget.ui4
-rw-r--r--kopete/kopete/contactlist/kopetelviprops.cpp20
-rw-r--r--kopete/kopete/contactlist/kopetemetacontactlvi.cpp92
-rw-r--r--kopete/kopete/contactlist/kopetemetacontactlvi.h2
-rw-r--r--kopete/kopete/contactlist/kopetemetalvipropswidget.ui30
-rw-r--r--kopete/kopete/eventsrc16
-rw-r--r--kopete/kopete/groupkabcselectorwidget.ui2
-rw-r--r--kopete/kopete/kconf_update/kopete-account-kconf_update.cpp8
-rw-r--r--kopete/kopete/kconf_update/kopete-nameTracking.cpp36
-rw-r--r--kopete/kopete/kconf_update/kopete-pluginloader2.cpp2
-rw-r--r--kopete/kopete/kimiface.h4
-rw-r--r--kopete/kopete/kimifaceimpl.cpp4
-rw-r--r--kopete/kopete/kimifaceimpl.h2
-rw-r--r--kopete/kopete/kopeteapplication.cpp4
-rw-r--r--kopete/kopete/kopeteballoon.cpp8
-rw-r--r--kopete/kopete/kopeteeditglobalidentitywidget.cpp2
-rw-r--r--kopete/kopete/kopeteiface.cpp8
-rw-r--r--kopete/kopete/kopeteiface.h6
-rw-r--r--kopete/kopete/kopetewindow.cpp28
-rw-r--r--kopete/kopete/kopetewindow.h2
-rw-r--r--kopete/kopete/systemtray.cpp20
73 files changed, 547 insertions, 547 deletions
diff --git a/kopete/kopete/addaccountwizard/addaccountwizard.cpp b/kopete/kopete/addaccountwizard/addaccountwizard.cpp
index 68c9679e..1c42acf2 100644
--- a/kopete/kopete/addaccountwizard/addaccountwizard.cpp
+++ b/kopete/kopete/addaccountwizard/addaccountwizard.cpp
@@ -128,7 +128,7 @@ void AddAccountWizard::next()
if (!m_proto)
{
KMessageBox::queuedMessageBox(this, KMessageBox::Error,
- i18n("Cannot load the %1 protocol plugin.").tqarg(m_protocolItems[lvi]->name()),
+ i18n("Cannot load the %1 protocol plugin.").arg(m_protocolItems[lvi]->name()),
i18n("Error While Adding Account"));
return;
}
diff --git a/kopete/kopete/addaccountwizard/addaccountwizardpage1.ui b/kopete/kopete/addaccountwizard/addaccountwizardpage1.ui
index 9fc65382..04ab9f9a 100644
--- a/kopete/kopete/addaccountwizard/addaccountwizardpage1.ui
+++ b/kopete/kopete/addaccountwizard/addaccountwizardpage1.ui
@@ -12,7 +12,7 @@
<height>464</height>
</rect>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -30,7 +30,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0" rowspan="2" colspan="1">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<vbox>
<property name="name">
@@ -57,7 +57,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>21</width>
<height>70</height>
@@ -92,7 +92,7 @@
<property name="name">
<cstring>protocolListView</cstring>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>400</width>
<height>300</height>
@@ -121,7 +121,7 @@
<string>&lt;h2&gt;Welcome to the Add Account Wizard&lt;/h2&gt;
&lt;p&gt;Select the messaging service from the list below.&lt;/p&gt;</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop|AlignLeft</set>
</property>
</widget>
diff --git a/kopete/kopete/addaccountwizard/addaccountwizardpage2.ui b/kopete/kopete/addaccountwizard/addaccountwizardpage2.ui
index 67fa86da..f652cb2e 100644
--- a/kopete/kopete/addaccountwizard/addaccountwizardpage2.ui
+++ b/kopete/kopete/addaccountwizard/addaccountwizardpage2.ui
@@ -38,13 +38,13 @@
<string>&lt;h2&gt;Congratulations&lt;/h2&gt;
&lt;p&gt;You have finished configuring the account. Please click the "Finish" button.&lt;/p&gt;</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
<widget class="TQLayoutWidget" row="1" column="1">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -86,7 +86,7 @@ for account:</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>101</width>
<height>21</height>
@@ -116,7 +116,7 @@ for account:</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>58</height>
diff --git a/kopete/kopete/addaccountwizard/addaccountwizardpage3.ui b/kopete/kopete/addaccountwizard/addaccountwizardpage3.ui
index a3688a6c..4cd6e1ef 100644
--- a/kopete/kopete/addaccountwizard/addaccountwizardpage3.ui
+++ b/kopete/kopete/addaccountwizard/addaccountwizardpage3.ui
@@ -40,13 +40,13 @@
</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
<widget class="TQLayoutWidget" row="1" column="1">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -88,7 +88,7 @@ for account:</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>101</width>
<height>21</height>
@@ -118,7 +118,7 @@ for account:</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>58</height>
diff --git a/kopete/kopete/addcontactwizard/addcontactwizard.cpp b/kopete/kopete/addcontactwizard/addcontactwizard.cpp
index 1a0f1a4f..7d9eb006 100644
--- a/kopete/kopete/addcontactwizard/addcontactwizard.cpp
+++ b/kopete/kopete/addcontactwizard/addcontactwizard.cpp
@@ -43,7 +43,7 @@
// true
#include <tqcheckbox.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqvbox.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -96,7 +96,7 @@ AddContactWizard::AddContactWizard( TQWidget *parent, const char *name )
for(Kopete::Account *i=accounts.first() ; i; i=accounts.next() )
{
accountLVI= new TQCheckListItem( protocolListView, i->accountLabel(), TQCheckListItem::CheckBox);
- accountLVI->setText(1,i->protocol()->displayName() + TQString::tqfromLatin1(" ") );
+ accountLVI->setText(1,i->protocol()->displayName() + TQString::fromLatin1(" ") );
//FIXME - I'm not sure the column 1 is a right place for the colored icon -Olivier
accountLVI->setPixmap( 1, i->accountIcon() );
m_accountItems.insert(accountLVI,i);
@@ -283,7 +283,7 @@ void AddContactWizard::next()
addPage->show();
insertPage( addPage, i18n( "The user has to select the contact to add to the given account name",
- "Choose New Contact For %1 Account <b>%2</b>" ).tqarg( i->protocol()->displayName() ).tqarg( item->text(0) ), indexOf( finis ) );
+ "Choose New Contact For %1 Account <b>%2</b>" ).arg( i->protocol()->displayName() ).arg( item->text(0) ), indexOf( finis ) );
protocolPages.insert( i , addPage );
}
}
diff --git a/kopete/kopete/addcontactwizard/addcontactwizard_base.ui b/kopete/kopete/addcontactwizard/addcontactwizard_base.ui
index 550e285f..766c2695 100644
--- a/kopete/kopete/addcontactwizard/addcontactwizard_base.ui
+++ b/kopete/kopete/addcontactwizard/addcontactwizard_base.ui
@@ -43,7 +43,7 @@
&lt;p&gt;This wizard will guide you through the process of adding a new contact to Kopete.&lt;/p&gt;</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop|AlignLeft</set>
</property>
</widget>
@@ -91,7 +91,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>50</height>
@@ -108,7 +108,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>425</width>
<height>20</height>
@@ -139,7 +139,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>91</height>
@@ -182,7 +182,7 @@
<property name="textFormat">
<enum>AutoText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -215,7 +215,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>65</height>
@@ -243,7 +243,7 @@
<property name="text">
<string>Select the contact list &amp;group(s) that this contact should belong to :</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
<property name="buddy" stdset="0">
@@ -293,7 +293,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>407</width>
<height>16</height>
@@ -320,7 +320,7 @@
<property name="text">
<string>&lt;p&gt;&lt;h2&gt;Select Instant Messaging Accounts&lt;/h2&gt;&lt;/p&gt;</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -389,7 +389,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>80</height>
@@ -442,7 +442,7 @@
&lt;p&gt;&lt;i&gt;Note&lt;/i&gt;: If adding this contact requires authorization from one or more of the messaging services, Kopete may prompt you for further information after this screen.&lt;/p&gt;</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -456,7 +456,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>205</height>
diff --git a/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp b/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp
index ecddf632..48e1b159 100644
--- a/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp
+++ b/kopete/kopete/addcontactwizard/fastaddcontactwizard.cpp
@@ -41,7 +41,7 @@ FastAddContactWizard::FastAddContactWizard( TQWidget *parent, const char *name )
for(Kopete::Account *i=accounts.first() ; i; i=accounts.next() )
{
accountLVI= new TQListViewItem( protocolListView, i->accountLabel() );
- accountLVI->setText(1,i->protocol()->displayName() + TQString::tqfromLatin1(" ") );
+ accountLVI->setText(1,i->protocol()->displayName() + TQString::fromLatin1(" ") );
accountLVI->setPixmap( 1, SmallIcon( i->protocol()->pluginIcon() ) );
m_accountItems.insert(accountLVI,i);
}
@@ -87,7 +87,7 @@ void FastAddContactWizard::next()
{
TQString title = i18n( "The account name is prepended here",
"%1 contact information" )
- .tqarg( item->text(0) );
+ .arg( item->text(0) );
addPage->show();
insertPage( addPage, title, indexOf( finis ) );
protocolPages.insert( m_accountItems[item] , addPage );
diff --git a/kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui b/kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui
index d5545eaf..cc8d9ce0 100644
--- a/kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui
+++ b/kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui
@@ -28,7 +28,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout21</cstring>
+ <cstring>layout21</cstring>
</property>
<vbox>
<property name="name">
@@ -55,7 +55,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>41</height>
@@ -66,7 +66,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout19</cstring>
+ <cstring>layout19</cstring>
</property>
<vbox>
<property name="name">
@@ -130,7 +130,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout21_2</cstring>
+ <cstring>layout21_2</cstring>
</property>
<vbox>
<property name="name">
@@ -157,7 +157,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>41</height>
@@ -168,7 +168,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout25</cstring>
+ <cstring>layout25</cstring>
</property>
<vbox>
<property name="name">
@@ -193,7 +193,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>211</width>
<height>61</height>
diff --git a/kopete/kopete/chatwindow/chatmemberslistwidget.cpp b/kopete/kopete/chatwindow/chatmemberslistwidget.cpp
index c87d7bda..f7675a44 100644
--- a/kopete/kopete/chatwindow/chatmemberslistwidget.cpp
+++ b/kopete/kopete/chatwindow/chatmemberslistwidget.cpp
@@ -54,9 +54,9 @@ public:
{
if( TQListViewItem *item = m_listView->itemAt( pos ) )
{
- TQRect tqitemRect = m_listView->tqitemRect( item );
- if( tqitemRect.contains( pos ) )
- tip( tqitemRect, static_cast<ContactItem*>( item )->contact()->toolTip() );
+ TQRect itemRect = m_listView->itemRect( item );
+ if( itemRect.contains( pos ) )
+ tip( itemRect, static_cast<ContactItem*>( item )->contact()->toolTip() );
}
}
@@ -81,7 +81,7 @@ ChatMembersListWidget::ContactItem::ContactItem( ChatMembersListWidget *parent,
connect( m_contact, TQT_SIGNAL( propertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ),
this, TQT_SLOT( slotPropertyChanged( Kopete::Contact *, const TQString &, const TQVariant &, const TQVariant & ) ) ) ;
- settqStatus( parent->session()->contactOnlineStatus(m_contact) );
+ setStatus( parent->session()->contactOnlineStatus(m_contact) );
reposition();
}
@@ -95,7 +95,7 @@ void ChatMembersListWidget::ContactItem::slotPropertyChanged( Kopete::Contact*,
}
}
-void ChatMembersListWidget::ContactItem::settqStatus( const Kopete::OnlineStatus &status )
+void ChatMembersListWidget::ContactItem::setStatus( const Kopete::OnlineStatus &status )
{
setPixmap( 0, status.iconFor( m_contact ) );
reposition();
@@ -200,7 +200,7 @@ void ChatMembersListWidget::slotContactRemoved( const Kopete::Contact *contact )
void ChatMembersListWidget::slotContactStatusChanged( Kopete::Contact *contact, const Kopete::OnlineStatus &status )
{
if ( m_members.contains( contact ) )
- m_members[contact]->settqStatus( status );
+ m_members[contact]->setStatus( status );
}
void ChatMembersListWidget::slotExecute( TQListViewItem *item )
@@ -249,7 +249,7 @@ TQDragObject *ChatMembersListWidget::dragObject()
}
}
- drag->setPixmap( c->onlinetqStatus().iconFor(c, 12) );
+ drag->setPixmap( c->onlineStatus().iconFor(c, 12) );
return drag;
}
diff --git a/kopete/kopete/chatwindow/chatmemberslistwidget.h b/kopete/kopete/chatwindow/chatmemberslistwidget.h
index 322dc807..83744110 100644
--- a/kopete/kopete/chatwindow/chatmemberslistwidget.h
+++ b/kopete/kopete/chatwindow/chatmemberslistwidget.h
@@ -111,7 +111,7 @@ private:
friend class ChatMembersListWidget;
void reposition();
- void settqStatus( const Kopete::OnlineStatus &status );
+ void setStatus( const Kopete::OnlineStatus &status );
Kopete::Contact *m_contact;
};
diff --git a/kopete/kopete/chatwindow/chatmessagepart.cpp b/kopete/kopete/chatwindow/chatmessagepart.cpp
index 5bb4f204..008692bc 100644
--- a/kopete/kopete/chatwindow/chatmessagepart.cpp
+++ b/kopete/kopete/chatwindow/chatmessagepart.cpp
@@ -26,7 +26,7 @@
#include <ctime>
// TQt includes
-#include <tqclipboard.h>
+#include <clipboard.h>
#include <tqtooltip.h>
#include <tqrect.h>
#include <tqcursor.h>
@@ -34,7 +34,7 @@
#include <tqregexp.h>
#include <tqvaluelist.h>
#include <tqtimer.h>
-#include <tqstylesheet.h>
+#include <stylesheet.h>
// KHTML::DOM includes
#include <dom/dom_doc.h>
@@ -263,8 +263,8 @@ ChatMessagePart::ChatMessagePart( Kopete::ChatSession *mgr, TQWidget *parent, co
d->saveAction = KStdAction::saveAs( this, TQT_SLOT(save()), actionCollection() );
d->printAction = KStdAction::print( this, TQT_SLOT(print()),actionCollection() );
d->closeAction = KStdAction::close( this, TQT_SLOT(slotCloseView()),actionCollection() );
- d->importEmoticon = new KAction( i18n( "Import Emoticon"), TQString::tqfromLatin1( "importemot" ), 0, this, TQT_SLOT( slotImportEmoticon() ), actionCollection() );
- d->copyURLAction = new KAction( i18n( "Copy Link Address" ), TQString::tqfromLatin1( "editcopy" ), 0, this, TQT_SLOT( slotCopyURL() ), actionCollection() );
+ d->importEmoticon = new KAction( i18n( "Import Emoticon"), TQString::fromLatin1( "importemot" ), 0, this, TQT_SLOT( slotImportEmoticon() ), actionCollection() );
+ d->copyURLAction = new KAction( i18n( "Copy Link Address" ), TQString::fromLatin1( "editcopy" ), 0, this, TQT_SLOT( slotCopyURL() ), actionCollection() );
// read formatting override flags
readOverrides();
@@ -289,7 +289,7 @@ void ChatMessagePart::slotScrollingTo( int /*x*/, int y )
void ChatMessagePart::slotImportEmoticon()
{
TQString emoticonString = KInputDialog::getText( i18n("Import Emoticon"),
- i18n("<qt><img src=\"%1\"><br>Insert the string for the emoticon<br>separated by space if you want multiple strings</qt>").tqarg( d->activeElement.getAttribute("src").string() ) );
+ i18n("<qt><img src=\"%1\"><br>Insert the string for the emoticon<br>separated by space if you want multiple strings</qt>").arg( d->activeElement.getAttribute("src").string() ) );
if (emoticonString.isNull() )
return;
@@ -335,7 +335,7 @@ void ChatMessagePart::slotImportEmoticon()
void ChatMessagePart::save()
{
- KFileDialog dlg( TQString(), TQString::tqfromLatin1( "text/html text/plain" ), view(), "fileSaveDialog", false );
+ KFileDialog dlg( TQString(), TQString::fromLatin1( "text/html text/plain" ), view(), "fileSaveDialog", false );
dlg.setCaption( i18n( "Save Conversation" ) );
dlg.setOperationMode( KFileDialog::Saving );
@@ -350,7 +350,7 @@ void ChatMessagePart::save()
TQTextStream stream ( file );
stream.setEncoding(TQTextStream::UnicodeUTF8);
- if ( dlg.currentFilter() == TQString::tqfromLatin1( "text/plain" ) )
+ if ( dlg.currentFilter() == TQString::fromLatin1( "text/plain" ) )
{
TQValueList<Kopete::Message>::ConstIterator it, itEnd = d->allMessages.constEnd();
for(it = d->allMessages.constBegin(); it != itEnd; ++it)
@@ -374,7 +374,7 @@ void ChatMessagePart::save()
if ( !KIO::NetAccess::move( KURL( tempFile.name() ), saveURL ) )
{
KMessageBox::queuedMessageBox( view(), KMessageBox::Error,
- i18n("<qt>Could not open <b>%1</b> for writing.</qt>").tqarg( saveURL.prettyURL() ), // Message
+ i18n("<qt>Could not open <b>%1</b> for writing.</qt>").arg( saveURL.prettyURL() ), // Message
i18n("Error While Saving") ); //Caption
}
}
@@ -392,7 +392,7 @@ void ChatMessagePart::pageDown()
void ChatMessagePart::slotOpenURLRequest(const KURL &url, const KParts::URLArgs &/*args*/)
{
kdDebug(14000) << k_funcinfo << "url=" << url.url() << endl;
- if ( url.protocol() == TQString::tqfromLatin1("kopetemessage") )
+ if ( url.protocol() == TQString::fromLatin1("kopetemessage") )
{
Kopete::Contact *contact = d->manager->account()->contacts()[ url.host() ];
if ( contact )
@@ -437,7 +437,7 @@ void ChatMessagePart::setStyleVariant( const TQString &variantPath )
{
DOM::HTMLElement variantNode = document().getElementById( TQString::fromUtf8("mainStyle") );
if( !variantNode.isNull() )
- variantNode.setInnerText( TQString("@import url(\"%1\");").tqarg(variantPath) );
+ variantNode.setInnerText( TQString("@import url(\"%1\");").arg(variantPath) );
}
void ChatMessagePart::slotAppearanceChanged()
@@ -626,15 +626,15 @@ const TQString ChatMessagePart::styleHTML() const
if( p->fontFace().pointSize() != -1 )
{
fontSize = p->fontFace().pointSize();
- fontSizeCss = TQString::fromUtf8("%1pt;").tqarg(fontSize);
+ fontSizeCss = TQString::fromUtf8("%1pt;").arg(fontSize);
}
else if( p->fontFace().pixelSize() != -1 )
{
fontSize = p->fontFace().pixelSize();
- fontSizeCss = TQString::fromUtf8("%1px;").tqarg(fontSize);
+ fontSizeCss = TQString::fromUtf8("%1px;").arg(fontSize);
}
- TQString style = TQString::tqfromLatin1(
+ TQString style = TQString::fromLatin1(
"body{background-color:%1;font-family:%2;font-size:%3;color:%4}"
"td{font-family:%5;font-size:%6;color:%7}"
"a{color:%8}a.visited{color:%9}"
@@ -642,15 +642,15 @@ const TQString ChatMessagePart::styleHTML() const
"a.KopeteDisplayName:hover{text-decoration:underline;color:inherit}"
".KopeteLink{cursor:pointer;}.KopeteLink:hover{text-decoration:underline}"
".KopeteMessageBody > p:first-child{margin:0;padding:0;display:inline;}" /* some html messages are encapsuled into a <p> */ )
- .tqarg( p->bgColor().name() )
- .tqarg( p->fontFace().family() )
- .tqarg( fontSizeCss )
- .tqarg( p->textColor().name() )
- .tqarg( p->fontFace().family() )
- .tqarg( fontSizeCss )
- .tqarg( p->textColor().name() )
- .tqarg( p->linkColor().name() )
- .tqarg( p->linkColor().name() );
+ .arg( p->bgColor().name() )
+ .arg( p->fontFace().family() )
+ .arg( fontSizeCss )
+ .arg( p->textColor().name() )
+ .arg( p->fontFace().family() )
+ .arg( fontSizeCss )
+ .arg( p->textColor().name() )
+ .arg( p->linkColor().name() )
+ .arg( p->linkColor().name() );
return style;
}
@@ -727,7 +727,7 @@ void ChatMessagePart::slotRightClick( const TQString &, const TQPoint &point )
chatWindowPopup->setItemEnabled( 1, false );
chatWindowPopup->insertSeparator();
}
- else if ( d->activeElement.tagName().lower() == TQString::tqfromLatin1( "a" ) )
+ else if ( d->activeElement.tagName().lower() == TQString::fromLatin1( "a" ) )
{
d->copyURLAction->plug( chatWindowPopup );
chatWindowPopup->insertSeparator();
@@ -797,15 +797,15 @@ void ChatMessagePart::slotCopyURL()
DOM::HTMLAnchorElement a = d->activeElement;
if ( !a.isNull() )
{
- TQApplication::tqclipboard()->setText( a.href().string(), TQClipboard::Clipboard );
- TQApplication::tqclipboard()->setText( a.href().string(), TQClipboard::Selection );
+ TQApplication::clipboard()->setText( a.href().string(), TQClipboard::Clipboard );
+ TQApplication::clipboard()->setText( a.href().string(), TQClipboard::Selection );
}
}
void ChatMessagePart::slotScrollView()
{
// NB: view()->contentsHeight() is incorrect before the view has been shown in its window.
- // Until this happens, the tqgeometry has not been correctly calculated, so this scrollBy call
+ // Until this happens, the geometry has not been correctly calculated, so this scrollBy call
// will usually scroll to the top of the view.
view()->scrollBy( 0, view()->contentsHeight() );
}
@@ -955,13 +955,13 @@ void ChatMessagePart::copy(bool justselection /* default false */)
htmltextdrag->setSubtype("html");
drag->addDragObject( htmltextdrag );
}
- TQApplication::tqclipboard()->setData( drag, TQClipboard::Clipboard );
+ TQApplication::clipboard()->setData( drag, TQClipboard::Clipboard );
}
- TQApplication::tqclipboard()->setText( text, TQClipboard::Selection );
+ TQApplication::clipboard()->setText( text, TQClipboard::Selection );
#else
if(!justselection)
- TQApplication::tqclipboard()->setText( text, TQClipboard::Clipboard );
- TQApplication::tqclipboard()->setText( text, TQClipboard::Selection );
+ TQApplication::clipboard()->setText( text, TQClipboard::Clipboard );
+ TQApplication::clipboard()->setText( text, TQClipboard::Selection );
#endif
connect( kapp->clipboard(), TQT_SIGNAL( selectionChanged()), TQT_SLOT( slotClearSelection()));
@@ -1024,8 +1024,8 @@ TQString ChatMessagePart::formatStyleKeywords( const TQString &sourceHTML, const
protocolIcon = KGlobal::iconLoader()->iconPath( iconName, KIcon::Small );
- nickLink=TQString::tqfromLatin1("<a href=\"kopetemessage://%1/?protocolId=%2&amp;accountId=%3\" class=\"KopeteDisplayName\">")
- .tqarg( TQStyleSheet::escape(message.from()->contactId()).replace('"',"&quot;"),
+ nickLink=TQString::fromLatin1("<a href=\"kopetemessage://%1/?protocolId=%2&amp;accountId=%3\" class=\"KopeteDisplayName\">")
+ .arg( TQStyleSheet::escape(message.from()->contactId()).replace('"',"&quot;"),
TQStyleSheet::escape(message.from()->protocol()->pluginId()).replace('"',"&quot;"),
TQStyleSheet::escape(message.from()->account()->accountId() ).replace('"',"&quot;"));
}
@@ -1107,7 +1107,7 @@ TQString ChatMessagePart::formatStyleKeywords( const TQString &sourceHTML, const
{
kdDebug(14000) << k_funcinfo << "Map Action message to Status template. " << endl;
- TQString boldNick = TQString::fromUtf8("%1<b>%2</b></a> ").tqarg(nickLink,nick);
+ TQString boldNick = TQString::fromUtf8("%1<b>%2</b></a> ").arg(nickLink,nick);
TQString newBody = boldNick + message.parsedBody();
message.setBody(newBody, Kopete::Message::ParsedHTML );
}
@@ -1130,7 +1130,7 @@ TQString ChatMessagePart::formatStyleKeywords( const TQString &sourceHTML, const
// hash contactId to deterministically pick a color for the contact
int hash = 0;
for( uint f = 0; f < contactId.length(); ++f )
- hash += contactId[f].tqunicode() * f;
+ hash += contactId[f].unicode() * f;
const TQString colorName = nameColors[ hash % nameColorsLen ];
TQString lightColorName; // Do not initialize, TQColor::name() is expensive!
kdDebug(14000) << k_funcinfo << "Hash " << hash << " has color " << colorName << endl;
@@ -1180,20 +1180,20 @@ TQString ChatMessagePart::formatStyleKeywords( const TQString &sourceHTML )
destinationName = remoteContact->nickName();
// Replace %chatName%, create a internal span to update it by DOM when asked.
- resultHTML = resultHTML.replace( TQString::fromUtf8("%chatName%"), TQString("<span id=\"KopeteHeaderChatNameInternal\">%1</span>").tqarg( formatName(d->manager->displayName()) ) );
+ resultHTML = resultHTML.replace( TQString::fromUtf8("%chatName%"), TQString("<span id=\"KopeteHeaderChatNameInternal\">%1</span>").arg( formatName(d->manager->displayName()) ) );
// Replace %sourceName%
resultHTML = resultHTML.replace( TQString::fromUtf8("%sourceName%"), formatName(sourceName) );
// Replace %destinationName%
resultHTML = resultHTML.replace( TQString::fromUtf8("%destinationName%"), formatName(destinationName) );
// For %timeOpened%, display the date and time (also the seconds).
- resultHTML = resultHTML.replace( TQString::fromUtf8("%timeOpened%"), KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), true, true ) );
+ resultHTML = resultHTML.replace( TQString::fromUtf8("%timeOpened%"), KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true, true ) );
// Look for %timeOpened{X}%
TQRegExp timeRegExp("%timeOpened\\{([^}]*)\\}%");
int pos=0;
while( (pos=timeRegExp.search(resultHTML, pos) ) != -1 )
{
- TQString timeKeyword = formatTime( timeRegExp.cap(1), TQDateTime::tqcurrentDateTime() );
+ TQString timeKeyword = formatTime( timeRegExp.cap(1), TQDateTime::currentDateTime() );
resultHTML = resultHTML.replace( pos , timeRegExp.cap(0).length() , timeKeyword );
}
// Get contact image paths
@@ -1213,7 +1213,7 @@ TQString ChatMessagePart::formatStyleKeywords( const TQString &sourceHTML )
TQString photoIncoming, photoOutgoing;
if( remoteContact->metaContact() && !remoteContact->metaContact()->picture().isNull() )
{
- photoIncoming = TQString("data:image/png;base64,%1").tqarg( remoteContact->metaContact()->picture().base64() );
+ photoIncoming = TQString("data:image/png;base64,%1").arg( remoteContact->metaContact()->picture().base64() );
}
else
{
@@ -1222,7 +1222,7 @@ TQString ChatMessagePart::formatStyleKeywords( const TQString &sourceHTML )
if( d->manager->myself()->metaContact() && !d->manager->myself()->metaContact()->picture().isNull() )
{
- photoOutgoing = TQString("data:image/png;base64,%1").tqarg( d->manager->myself()->metaContact()->picture().base64() );
+ photoOutgoing = TQString("data:image/png;base64,%1").arg( d->manager->myself()->metaContact()->picture().base64() );
}
else
{
@@ -1274,7 +1274,7 @@ TQString ChatMessagePart::formatMessageBody(const Kopete::Message &message)
formattedBody += message.getHtmlStyleAttribute();
// Affect the parsed body.
- formattedBody += TQString::fromUtf8("class=\"KopeteMessageBody\">%1</span>").tqarg(message.parsedBody());
+ formattedBody += TQString::fromUtf8("class=\"KopeteMessageBody\">%1</span>").arg(message.parsedBody());
return formattedBody;
}
@@ -1363,11 +1363,11 @@ void ChatMessagePart::writeTemplate()
"%3\n"
"</body>"
"</html>"
- ).tqarg( d->currentChatStyle->getStyleBaseHref() )
- .tqarg( formatStyleKeywords(d->currentChatStyle->getHeaderHtml()) )
- .tqarg( formatStyleKeywords(d->currentChatStyle->getFooterHtml()) )
- .tqarg( KopetePrefs::prefs()->styleVariant() )
- .tqarg( styleHTML() );
+ ).arg( d->currentChatStyle->getStyleBaseHref() )
+ .arg( formatStyleKeywords(d->currentChatStyle->getHeaderHtml()) )
+ .arg( formatStyleKeywords(d->currentChatStyle->getFooterHtml()) )
+ .arg( KopetePrefs::prefs()->styleVariant() )
+ .arg( styleHTML() );
write(xhtmlBase);
end();
#ifdef STYLE_TIMETEST
diff --git a/kopete/kopete/chatwindow/chattexteditpart.cpp b/kopete/kopete/chatwindow/chattexteditpart.cpp
index 1cb9ddf3..191e7b01 100644
--- a/kopete/kopete/chatwindow/chattexteditpart.cpp
+++ b/kopete/kopete/chatwindow/chattexteditpart.cpp
@@ -130,8 +130,8 @@ void ChatTextEditPart::complete()
if ( parIdx > 0 )
{
- int firstSpace = txt.findRev( TQRegExp( TQString::tqfromLatin1("\\s\\S+") ), parIdx - 1 ) + 1;
- int lastSpace = txt.find( TQRegExp( TQString::tqfromLatin1("[\\s\\:]") ), firstSpace );
+ int firstSpace = txt.findRev( TQRegExp( TQString::fromLatin1("\\s\\S+") ), parIdx - 1 ) + 1;
+ int lastSpace = txt.find( TQRegExp( TQString::fromLatin1("[\\s\\:]") ), firstSpace );
if( lastSpace == -1 )
lastSpace = txt.length();
@@ -158,7 +158,7 @@ void ChatTextEditPart::complete()
if ( para == 0 && firstSpace == 0 && rightText[0] != TQChar(':') )
{
- rightText = match + TQString::tqfromLatin1(": ") + rightText;
+ rightText = match + TQString::fromLatin1(": ") + rightText;
parIdx += 2;
}
else
@@ -245,11 +245,11 @@ bool ChatTextEditPart::canSend()
return true;
}
-void ChatTextEditPart::slotContactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &newtqStatus, const Kopete::OnlineStatus &oldtqStatus )
+void ChatTextEditPart::slotContactStatusChanged( Kopete::Contact *, const Kopete::OnlineStatus &newStatus, const Kopete::OnlineStatus &oldStatus )
{
//FIXME: should use signal contact->isReachableChanged, but it doesn't exist ;(
- if ( ( oldtqStatus.status() == Kopete::OnlineStatus::Offline )
- != ( newtqStatus.status() == Kopete::OnlineStatus::Offline ) )
+ if ( ( oldStatus.status() == Kopete::OnlineStatus::Offline )
+ != ( newStatus.status() == Kopete::OnlineStatus::Offline ) )
{
emit canSendChanged( canSend() );
}
@@ -262,7 +262,7 @@ void ChatTextEditPart::sendMessage()
if ( txt.isEmpty() || txt == "\n" )
return;
- if ( m_lastMatch.isNull() && ( txt.find( TQRegExp( TQString::tqfromLatin1("^\\w+:\\s") ) ) > -1 ) )
+ if ( m_lastMatch.isNull() && ( txt.find( TQRegExp( TQString::fromLatin1("^\\w+:\\s") ) ) > -1 ) )
{ //no last match and it finds something of the form of "word:" at the start of a line
TQString search = txt.left( txt.find(':') );
if( !search.isEmpty() )
diff --git a/kopete/kopete/chatwindow/chatview.cpp b/kopete/kopete/chatwindow/chatview.cpp
index f2b80969..4f356690 100644
--- a/kopete/kopete/chatwindow/chatview.cpp
+++ b/kopete/kopete/chatwindow/chatview.cpp
@@ -81,7 +81,7 @@ ChatView::ChatView( Kopete::ChatSession *mgr, ChatWindowPlugin *parent, const ch
m_mainWindow = 0L;
membersDock = 0L;
- memberstqStatus = Smart;
+ membersStatus = Smart;
m_tabState = Normal;
@@ -89,8 +89,8 @@ ChatView::ChatView( Kopete::ChatSession *mgr, ChatWindowPlugin *parent, const ch
hide();
//Create the view dock widget (KHTML Part), and set it to no docking (lock it in place)
- viewDock = createDockWidget(TQString::tqfromLatin1( "viewDock" ), TQPixmap(),
- 0L,TQString::tqfromLatin1("viewDock"), TQString::tqfromLatin1(" "));
+ viewDock = createDockWidget(TQString::fromLatin1( "viewDock" ), TQPixmap(),
+ 0L,TQString::fromLatin1("viewDock"), TQString::fromLatin1(" "));
m_messagePart = new ChatMessagePart( mgr, viewDock, "m_messagePart" );
viewDock->setWidget(messagePart()->widget());
@@ -98,8 +98,8 @@ ChatView::ChatView( Kopete::ChatSession *mgr, ChatWindowPlugin *parent, const ch
viewDock->setEnableDocking(KDockWidget::DockNone);
//Create the bottom dock widget, with the edit area, statusbar and send button
- editDock = createDockWidget( TQString::tqfromLatin1( "editDock" ), TQPixmap(),
- 0L, TQString::tqfromLatin1("editDock"), TQString::tqfromLatin1(" ") );
+ editDock = createDockWidget( TQString::fromLatin1( "editDock" ), TQPixmap(),
+ 0L, TQString::fromLatin1("editDock"), TQString::fromLatin1(" ") );
m_editPart = new ChatTextEditPart( mgr, editDock, "kopeterichtexteditpart" );
// FIXME: is this used these days? it seems totally unnecessary
@@ -310,14 +310,14 @@ void ChatView::makeVisible()
{
m_mainWindow = KopeteChatWindow::window( m_manager );
// if ( root )
-// root->tqrepaint( true );
+// root->repaint( true );
emit windowCreated();
}
if ( !m_mainWindow->isVisible() )
{
m_mainWindow->show();
- // scroll down post show and tqlayout, otherwise the tqgeometry is wrong to scroll to the bottom.
+ // scroll down post show and layout, otherwise the geometry is wrong to scroll to the bottom.
m_messagePart->keepScrolledDown();
}
@@ -353,22 +353,22 @@ bool ChatView::closeView( bool force )
shortCaption = KStringHandler::rsqueeze( shortCaption );
response = KMessageBox::warningContinueCancel( this, i18n("<qt>You are about to leave the group chat session <b>%1</b>.<br>"
- "You will not receive future messages from this conversation.</qt>").tqarg( shortCaption ), i18n( "Closing Group Chat" ),
- i18n( "Cl&ose Chat" ), TQString::tqfromLatin1( "AskCloseGroupChat" ) );
+ "You will not receive future messages from this conversation.</qt>").arg( shortCaption ), i18n( "Closing Group Chat" ),
+ i18n( "Cl&ose Chat" ), TQString::fromLatin1( "AskCloseGroupChat" ) );
}
if ( !unreadMessageFrom.isNull() && ( response == KMessageBox::Continue ) )
{
response = KMessageBox::warningContinueCancel( this, i18n("<qt>You have received a message from <b>%1</b> in the last "
- "second. Are you sure you want to close this chat?</qt>").tqarg( unreadMessageFrom ), i18n( "Unread Message" ),
- i18n( "Cl&ose Chat" ), TQString::tqfromLatin1("AskCloseChatRecentMessage" ) );
+ "second. Are you sure you want to close this chat?</qt>").arg( unreadMessageFrom ), i18n( "Unread Message" ),
+ i18n( "Cl&ose Chat" ), TQString::fromLatin1("AskCloseChatRecentMessage" ) );
}
if ( d->sendInProgress && ( response == KMessageBox::Continue ) )
{
response = KMessageBox::warningContinueCancel( this, i18n( "You have a message send in progress, which will be "
"aborted if this chat is closed. Are you sure you want to close this chat?" ), i18n( "Message in Transit" ),
- i18n( "Cl&ose Chat" ), TQString::tqfromLatin1( "AskCloseChatMessageInProgress" ) );
+ i18n( "Cl&ose Chat" ), TQString::fromLatin1( "AskCloseChatMessageInProgress" ) );
}
}
@@ -418,8 +418,8 @@ void ChatView::createMembersList()
if ( !membersDock )
{
//Create the chat members list
- membersDock = createDockWidget( TQString::tqfromLatin1( "membersDock" ), TQPixmap(), 0L,
- TQString::tqfromLatin1( "membersDock" ), TQString::tqfromLatin1( " " ) );
+ membersDock = createDockWidget( TQString::fromLatin1( "membersDock" ), TQPixmap(), 0L,
+ TQString::fromLatin1( "membersDock" ), TQString::fromLatin1( " " ) );
m_membersList = new ChatMembersListWidget( m_manager, this, "m_membersList" );
membersDock->setWidget( m_membersList );
@@ -428,21 +428,21 @@ void ChatView::createMembersList()
if ( members.first() && members.first()->metaContact() != 0 )
{
- memberstqStatus = static_cast<MembersListPolicy>
+ membersStatus = static_cast<MembersListPolicy>
(
members.first()->metaContact()->pluginData
- ( m_manager->protocol(), TQString::tqfromLatin1( "MembersListPolicy" ) ).toInt()
+ ( m_manager->protocol(), TQString::fromLatin1( "MembersListPolicy" ) ).toInt()
);
}
else
{
- memberstqStatus = Smart;
+ membersStatus = Smart;
}
- if( memberstqStatus == Smart )
+ if( membersStatus == Smart )
d->visibleMembers = ( m_manager->members().count() > 1 );
else
- d->visibleMembers = ( memberstqStatus == Visible );
+ d->visibleMembers = ( membersStatus == Visible );
placeMembersList( membersDockPosition );
}
@@ -453,13 +453,13 @@ void ChatView::toggleMembersVisibility()
if( membersDock )
{
d->visibleMembers = !d->visibleMembers;
- memberstqStatus = d->visibleMembers ? Visible : Hidden;
+ membersStatus = d->visibleMembers ? Visible : Hidden;
placeMembersList( membersDockPosition );
Kopete::ContactPtrList members = m_manager->members();
if ( members.first()->metaContact() )
{
members.first()->metaContact()->setPluginData( m_manager->protocol(),
- TQString::tqfromLatin1( "MembersListPolicy" ), TQString::number(memberstqStatus) );
+ TQString::fromLatin1( "MembersListPolicy" ), TQString::number(membersStatus) );
}
//refreshView();
}
@@ -467,7 +467,7 @@ void ChatView::toggleMembersVisibility()
void ChatView::placeMembersList( KDockWidget::DockPosition dp )
{
-// kdDebug(14000) << k_funcinfo << "Members list policy " << memberstqStatus <<
+// kdDebug(14000) << k_funcinfo << "Members list policy " << membersStatus <<
// ", visible " << d->visibleMembers << endl;
if ( d->visibleMembers )
@@ -476,17 +476,17 @@ void ChatView::placeMembersList( KDockWidget::DockPosition dp )
// look up the dock width
int dockWidth;
- KGlobal::config()->setGroup( TQString::tqfromLatin1( "ChatViewDock" ) );
+ KGlobal::config()->setGroup( TQString::fromLatin1( "ChatViewDock" ) );
if( membersDockPosition == KDockWidget::DockLeft )
{
dockWidth = KGlobal::config()->readNumEntry(
- TQString::tqfromLatin1( "membersDock,viewDock:sepPos" ), 30);
+ TQString::fromLatin1( "membersDock,viewDock:sepPos" ), 30);
}
else
{
dockWidth = KGlobal::config()->readNumEntry(
- TQString::tqfromLatin1( "viewDock,membersDock:sepPos" ), 70);
+ TQString::fromLatin1( "viewDock,membersDock:sepPos" ), 70);
}
// Make sure it is shown then place it wherever
@@ -547,11 +547,11 @@ void ChatView::remoteTyping( const Kopete::Contact *contact, bool isTyping )
if( !typingList.isEmpty() )
{
if ( typingList.count() == 1 )
- setStatusText( i18n( "%1 is typing a message" ).tqarg( typingList.first() ) );
+ setStatusText( i18n( "%1 is typing a message" ).arg( typingList.first() ) );
else
{
- TQString statusTyping = typingList.join( TQString::tqfromLatin1( ", " ) );
- setStatusText( i18n( "%1 is a list of names", "%1 are typing a message" ).tqarg( statusTyping ) );
+ TQString statusTyping = typingList.join( TQString::fromLatin1( ", " ) );
+ setStatusText( i18n( "%1 is a list of names", "%1 are typing a message" ).arg( statusTyping ) );
}
updateChatState( Typing );
}
@@ -565,7 +565,7 @@ void ChatView::setStatusText( const TQString &status )
{
d->statusText = status;
if ( d->isActive )
- m_mainWindow->settqStatus( status );
+ m_mainWindow->setStatus( status );
}
const TQString& ChatView::statusText()
@@ -631,9 +631,9 @@ void ChatView::slotContactAdded(const Kopete::Contact *contact, bool suppress)
}
if( !suppress && m_manager->members().count() > 1 )
- sendInternalMessage( i18n("%1 has joined the chat.").tqarg(contactName) );
+ sendInternalMessage( i18n("%1 has joined the chat.").arg(contactName) );
- if( memberstqStatus == Smart && membersDock )
+ if( membersStatus == Smart && membersDock )
{
bool shouldShowMembers = ( m_manager->members().count() > 1);
if( shouldShowMembers != d->visibleMembers )
@@ -682,9 +682,9 @@ void ChatView::slotContactRemoved( const Kopete::Contact *contact, const TQStrin
if ( !suppressNotification )
{
if ( reason.isEmpty() )
- sendInternalMessage( i18n( "%1 has left the chat." ).tqarg( contactName ), format ) ;
+ sendInternalMessage( i18n( "%1 has left the chat." ).arg( contactName ), format ) ;
else
- sendInternalMessage( i18n( "%1 has left the chat (%2)." ).tqarg( contactName, reason ), format);
+ sendInternalMessage( i18n( "%1 has left the chat (%2)." ).arg( contactName, reason ), format);
}
}
@@ -711,7 +711,7 @@ void ChatView::setCaption( const TQString &text, bool modified )
//Call the original set caption
KDockMainWindow::setCaption( newCaption, false );
- emit updateChatTooltip( this, TQString::tqfromLatin1("<qt>%1</qt>").tqarg( d->captionText ) );
+ emit updateChatTooltip( this, TQString::fromLatin1("<qt>%1</qt>").arg( d->captionText ) );
emit updateChatLabel( this, newCaption );
//Blink icon if modified and not active
if( !d->isActive && modified )
@@ -773,18 +773,18 @@ void ChatView::slotToggleRtfToolbar( bool enabled )
emit rtfEnabled( this, enabled );
}
-void ChatView::slotContactStatusChanged( Kopete::Contact *contact, const Kopete::OnlineStatus &newtqStatus, const Kopete::OnlineStatus &oldtqStatus )
+void ChatView::slotContactStatusChanged( Kopete::Contact *contact, const Kopete::OnlineStatus &newStatus, const Kopete::OnlineStatus &oldStatus )
{
kdDebug(14000) << k_funcinfo << contact << endl;
- bool inhibitNotification = ( newtqStatus.status() == Kopete::OnlineStatus::Unknown ||
- oldtqStatus.status() == Kopete::OnlineStatus::Unknown );
+ bool inhibitNotification = ( newStatus.status() == Kopete::OnlineStatus::Unknown ||
+ oldStatus.status() == Kopete::OnlineStatus::Unknown );
if ( contact && KopetePrefs::prefs()->showEvents() && !inhibitNotification )
{
if ( contact->account() && contact == contact->account()->myself() )
{
// Separate notification for the 'self' contact
- if ( newtqStatus.status() != Kopete::OnlineStatus::Connecting )
- sendInternalMessage( i18n( "You are now marked as %1." ).tqarg( newtqStatus.description() ) );
+ if ( newStatus.status() != Kopete::OnlineStatus::Connecting )
+ sendInternalMessage( i18n( "You are now marked as %1." ).arg( newStatus.description() ) );
}
else if ( !contact->account() || !contact->account()->suppressStatusNotification() )
{
@@ -792,13 +792,13 @@ void ChatView::slotContactStatusChanged( Kopete::Contact *contact, const Kopete:
if ( contact->metaContact() && contact->metaContact() != Kopete::ContactList::self()->myself() )
{
sendInternalMessage( i18n( "%2 is now %1." )
- .tqarg( newtqStatus.description(), contact->metaContact()->displayName() ) );
+ .arg( newStatus.description(), contact->metaContact()->displayName() ) );
}
else
{
TQString nick=contact->nickName();
sendInternalMessage( i18n( "%2 is now %1." )
- .tqarg( newtqStatus.description(), nick ) );
+ .arg( newStatus.description(), nick ) );
}
}
}
@@ -835,9 +835,9 @@ void ChatView::saveOptions()
{
KConfig *config = KGlobal::config();
- writeDockConfig ( config, TQString::tqfromLatin1( "ChatViewDock" ) );
- config->setGroup( TQString::tqfromLatin1( "ChatViewDock" ) );
- config->writeEntry( TQString::tqfromLatin1( "membersDockPosition" ), membersDockPosition );
+ writeDockConfig ( config, TQString::fromLatin1( "ChatViewDock" ) );
+ config->setGroup( TQString::fromLatin1( "ChatViewDock" ) );
+ config->writeEntry( TQString::fromLatin1( "membersDockPosition" ), membersDockPosition );
saveChatSettings();
config->sync();
}
@@ -859,7 +859,7 @@ void ChatView::saveChatSettings()
KConfig* config = KGlobal::config();
- TQString contactListGroup = TQString::tqfromLatin1("chatwindow_") +
+ TQString contactListGroup = TQString::fromLatin1("chatwindow_") +
mc->metaContactId();
config->setGroup( contactListGroup );
@@ -875,7 +875,7 @@ void ChatView::loadChatSettings()
return; //can't load with more than one other person in the chat
//read settings for metacontact
- TQString contactListGroup = TQString::tqfromLatin1("chatwindow_") +
+ TQString contactListGroup = TQString::fromLatin1("chatwindow_") +
contacts.first()->metaContact()->metaContactId();
KConfig* config = KGlobal::config();
config->setGroup( contactListGroup );
@@ -891,24 +891,24 @@ void ChatView::readOptions()
KConfig *config = KGlobal::config();
/** THIS IS BROKEN !!! */
- //dockManager->readConfig ( config, TQString::tqfromLatin1("ChatViewDock") );
+ //dockManager->readConfig ( config, TQString::fromLatin1("ChatViewDock") );
//Work-around to restore dock widget positions
- config->setGroup( TQString::tqfromLatin1( "ChatViewDock" ) );
+ config->setGroup( TQString::fromLatin1( "ChatViewDock" ) );
membersDockPosition = static_cast<KDockWidget::DockPosition>(
- config->readNumEntry( TQString::tqfromLatin1( "membersDockPosition" ), KDockWidget::DockRight ) );
+ config->readNumEntry( TQString::fromLatin1( "membersDockPosition" ), KDockWidget::DockRight ) );
- TQString dockKey = TQString::tqfromLatin1( "viewDock" );
+ TQString dockKey = TQString::fromLatin1( "viewDock" );
if ( d->visibleMembers )
{
if( membersDockPosition == KDockWidget::DockLeft )
- dockKey.prepend( TQString::tqfromLatin1( "membersDock," ) );
+ dockKey.prepend( TQString::fromLatin1( "membersDock," ) );
else if( membersDockPosition == KDockWidget::DockRight )
- dockKey.append( TQString::tqfromLatin1( ",membersDock" ) );
+ dockKey.append( TQString::fromLatin1( ",membersDock" ) );
}
- dockKey.append( TQString::tqfromLatin1( ",editDock:sepPos" ) );
+ dockKey.append( TQString::fromLatin1( ",editDock:sepPos" ) );
//kdDebug(14000) << k_funcinfo << "reading splitterpos from key: " << dockKey << endl;
int splitterPos = config->readNumEntry( dockKey, 70 );
editDock->manualDock( viewDock, KDockWidget::DockBottom, splitterPos );
@@ -937,7 +937,7 @@ void ChatView::dragEnterEvent ( TQDragEnterEvent * event )
{
if( event->provides( "kopete/x-contact" ) )
{
- TQStringList lst=TQStringList::split( TQChar( 0xE000 ) , TQString::fromUtf8(event->tqencodedData ( "kopete/x-contact" )) );
+ TQStringList lst=TQStringList::split( TQChar( 0xE000 ) , TQString::fromUtf8(event->encodedData ( "kopete/x-contact" )) );
if(m_manager->mayInvite() && m_manager->protocol()->pluginId() == lst[0] && m_manager->account()->accountId() == lst[1])
{
TQString contact=lst[2];
@@ -959,7 +959,7 @@ void ChatView::dragEnterEvent ( TQDragEnterEvent * event )
}
else if( event->provides( "kopete/x-metacontact" ) )
{
- TQString metacontactID=TQString::fromUtf8(event->tqencodedData ( "kopete/x-metacontact" ));
+ TQString metacontactID=TQString::fromUtf8(event->encodedData ( "kopete/x-metacontact" ));
Kopete::MetaContact *m=Kopete::ContactList::self()->metaContact(metacontactID);
if( m && m_manager->mayInvite())
@@ -993,7 +993,7 @@ void ChatView::dropEvent ( TQDropEvent * event )
{
if( event->provides( "kopete/x-contact" ) )
{
- TQStringList lst=TQStringList::split( TQChar( 0xE000 ) , TQString::fromUtf8(event->tqencodedData ( "kopete/x-contact" )) );
+ TQStringList lst=TQStringList::split( TQChar( 0xE000 ) , TQString::fromUtf8(event->encodedData ( "kopete/x-contact" )) );
if(m_manager->mayInvite() && m_manager->protocol()->pluginId() == lst[0] && m_manager->account()->accountId() == lst[1])
{
TQString contact=lst[2];
@@ -1014,7 +1014,7 @@ void ChatView::dropEvent ( TQDropEvent * event )
}
else if( event->provides( "kopete/x-metacontact" ) )
{
- TQString metacontactID=TQString::fromUtf8(event->tqencodedData ( "kopete/x-metacontact" ));
+ TQString metacontactID=TQString::fromUtf8(event->encodedData ( "kopete/x-metacontact" ));
Kopete::MetaContact *m=Kopete::ContactList::self()->metaContact(metacontactID);
if(m && m_manager->mayInvite())
{
diff --git a/kopete/kopete/chatwindow/chatview.h b/kopete/kopete/chatwindow/chatview.h
index 29aa5d17..f7ec6f76 100644
--- a/kopete/kopete/chatwindow/chatview.h
+++ b/kopete/kopete/chatwindow/chatview.h
@@ -382,7 +382,7 @@ private:
// position and visibility of the chat member list
KDockWidget::DockPosition membersDockPosition;
enum MembersListPolicy { Smart = 0, Visible = 1, Hidden = 2 };
- MembersListPolicy memberstqStatus;
+ MembersListPolicy membersStatus;
// miscellany
TQPtrDict<TQTimer> m_remoteTypingMap;
diff --git a/kopete/kopete/chatwindow/emoticonselector.cpp b/kopete/kopete/chatwindow/emoticonselector.cpp
index 3d8f1bbf..52ef204f 100644
--- a/kopete/kopete/chatwindow/emoticonselector.cpp
+++ b/kopete/kopete/chatwindow/emoticonselector.cpp
@@ -25,7 +25,7 @@
#include <math.h>
#include <tqmovie.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqobjectlist.h>
#include <tqtooltip.h>
#include <tqobjectlist.h>
@@ -37,7 +37,7 @@ EmoticonLabel::EmoticonLabel(const TQString &emoticonText, const TQString &pixma
{
mText = emoticonText;
setMovie( TQMovie(pixmapPath) );
- tqsetAlignment(TQt::AlignCenter);
+ setAlignment(TQt::AlignCenter);
TQToolTip::add(this,emoticonText);
// Somehow TQLabel doesn't tell a reasonable size when you use setMovie
// although it does it correctly for setPixmap. Therefore here is a little workaround
@@ -100,7 +100,7 @@ void EmoticonSelector::prepareList(void)
else
col++;
}
- resize(tqminimumSizeHint());
+ resize(minimumSizeHint());
}
void EmoticonSelector::emoticonClicked(const TQString &str)
diff --git a/kopete/kopete/chatwindow/kopetechatwindow.cpp b/kopete/kopete/chatwindow/kopetechatwindow.cpp
index f8cf09b2..59ee5671 100644
--- a/kopete/kopete/chatwindow/kopetechatwindow.cpp
+++ b/kopete/kopete/chatwindow/kopetechatwindow.cpp
@@ -22,7 +22,7 @@
#include <tqtimer.h>
#include <tqhbox.h>
#include <tqvbox.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqtooltip.h>
#include <tqfileinfo.h>
@@ -185,17 +185,17 @@ KopeteChatWindow::KopeteChatWindow( TQWidget *parent, const char* name )
mainArea = new TQFrame( vBox );
mainArea->setLineWidth( 0 );
- mainArea->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
+ mainArea->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
mainLayout = new TQVBoxLayout( mainArea );
if ( KopetePrefs::prefs()->chatWShowSend() )
{
//Send Button
m_button_send = new KPushButton( i18n("Send"), statusBar() );
- m_button_send->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
+ m_button_send->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
m_button_send->setEnabled( false );
m_button_send->setFont( statusBar()->font() );
- m_button_send->setFixedHeight( statusBar()->tqsizeHint().height() );
+ m_button_send->setFixedHeight( statusBar()->sizeHint().height() );
connect( m_button_send, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSendMessage() ) );
statusBar()->addWidget( m_button_send, 0, true );
}
@@ -203,9 +203,9 @@ KopeteChatWindow::KopeteChatWindow( TQWidget *parent, const char* name )
m_button_send = 0L;
m_status_text = new KSqueezedTextLabel( i18n("Ready."), statusBar(), "m_status_text" );
- m_status_text->tqsetAlignment( AlignLeft | AlignVCenter );
+ m_status_text->setAlignment( AlignLeft | AlignVCenter );
m_status_text->setFont( statusBar()->font() );
- m_status_text->setFixedHeight( statusBar()->tqsizeHint().height() );
+ m_status_text->setFixedHeight( statusBar()->sizeHint().height() );
statusBar()->addWidget( m_status_text, 1 );
readOptions();
@@ -214,9 +214,9 @@ KopeteChatWindow::KopeteChatWindow( TQWidget *parent, const char* name )
windows.append( this );
windowListChanged();
- KGlobal::config()->setGroup( TQString::tqfromLatin1("ChatWindowSettings") );
- m_alwaysShowTabs = KGlobal::config()->readBoolEntry( TQString::tqfromLatin1("AlwaysShowTabs"), false );
- m_showFormatToolbar = KGlobal::config()->readBoolEntry( TQString::tqfromLatin1("Show Format Toolbar"), true );
+ KGlobal::config()->setGroup( TQString::fromLatin1("ChatWindowSettings") );
+ m_alwaysShowTabs = KGlobal::config()->readBoolEntry( TQString::fromLatin1("AlwaysShowTabs"), false );
+ m_showFormatToolbar = KGlobal::config()->readBoolEntry( TQString::fromLatin1("Show Format Toolbar"), true );
adjustingFormatToolbar = false;
// kdDebug( 14010 ) << k_funcinfo << "Open Windows: " << windows.count() << endl;
kapp->ref();
@@ -313,7 +313,7 @@ void KopeteChatWindow::initActions(void)
createStandardStatusBarAction();
- chatSend = new KAction( i18n( "&Send Message" ), TQString::tqfromLatin1( "mail_send" ), TQKeySequence(Key_Return) ,
+ chatSend = new KAction( i18n( "&Send Message" ), TQString::fromLatin1( "mail_send" ), TQKeySequence(Key_Return) ,
TQT_TQOBJECT(this), TQT_SLOT( slotSendMessage() ), coll, "chat_send" );
chatSend->setEnabled( false );
@@ -334,11 +334,11 @@ void KopeteChatWindow::initActions(void)
nickComplete = new KAction( i18n( "Nic&k Completion" ), TQString(), 0, TQT_TQOBJECT(this), TQT_SLOT( slotNickComplete() ), coll , "nick_compete");
nickComplete->setShortcut( TQKeySequence( Key_Tab ) );
- tabDetach = new KAction( i18n( "&Detach Chat" ), TQString::tqfromLatin1( "tab_breakoff" ), 0,
+ tabDetach = new KAction( i18n( "&Detach Chat" ), TQString::fromLatin1( "tab_breakoff" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotDetachChat() ), coll, "tabs_detach" );
tabDetach->setEnabled( false );
- actionDetachMenu = new KActionMenu( i18n( "&Move Tab to Window" ), TQString::tqfromLatin1( "tab_breakoff" ), coll, "tabs_detachmove" );
+ actionDetachMenu = new KActionMenu( i18n( "&Move Tab to Window" ), TQString::fromLatin1( "tab_breakoff" ), coll, "tabs_detachmove" );
actionDetachMenu->setDelayed( false );
connect ( actionDetachMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotPrepareDetachMenu()) );
@@ -354,9 +354,9 @@ void KopeteChatWindow::initActions(void)
KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), coll);
KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(slotPaste()), coll);
- new KAction( i18n( "Set Default &Font..." ), TQString::tqfromLatin1( "charset" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetFont() ), coll, "format_font" );
- new KAction( i18n( "Set Default Text &Color..." ), TQString::tqfromLatin1( "pencil" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetFgColor() ), coll, "format_fgcolor" );
- new KAction( i18n( "Set &Background Color..." ), TQString::tqfromLatin1( "fill" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetBgColor() ), coll, "format_bgcolor" );
+ new KAction( i18n( "Set Default &Font..." ), TQString::fromLatin1( "charset" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetFont() ), coll, "format_font" );
+ new KAction( i18n( "Set Default Text &Color..." ), TQString::fromLatin1( "pencil" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetFgColor() ), coll, "format_fgcolor" );
+ new KAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetBgColor() ), coll, "format_bgcolor" );
historyUp = new KAction( i18n( "Previous History" ), TQString(), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotHistoryUp() ), coll, "history_up" );
@@ -397,8 +397,8 @@ void KopeteChatWindow::initActions(void)
KopeteStdAction::preferences( coll , "settings_prefs" );
//The Sending movie
- normalIcon = TQPixmap( BarIcon( TQString::tqfromLatin1( "kopete" ) ) );
- animIcon = KGlobal::iconLoader()->loadMovie( TQString::tqfromLatin1( "newmessage" ), KIcon::Toolbar);
+ normalIcon = TQPixmap( BarIcon( TQString::fromLatin1( "kopete" ) ) );
+ animIcon = KGlobal::iconLoader()->loadMovie( TQString::fromLatin1( "newmessage" ), KIcon::Toolbar);
// Pause the animation because otherwise it's running even when we're not
// showing it. This eats resources, and also triggers a pixmap leak in
@@ -418,7 +418,7 @@ void KopeteChatWindow::initActions(void)
//toolBar()->alignItemRight( 99 );
setStandardToolBarMenuEnabled( true );
- setXMLFile( TQString::tqfromLatin1( "kopetechatwindow.rc" ) );
+ setXMLFile( TQString::fromLatin1( "kopetechatwindow.rc" ) );
createGUI( 0L );
// Special handling for remembering whether the format toolbar is visible or not
@@ -581,7 +581,7 @@ void KopeteChatWindow::slotSetBgColor()
m_activeView->setBgColor();
}
-void KopeteChatWindow::settqStatus(const TQString &text)
+void KopeteChatWindow::setStatus(const TQString &text)
{
m_status_text->setText(text);
}
@@ -590,11 +590,11 @@ void KopeteChatWindow::createTabBar()
{
if( !m_tabBar )
{
- KGlobal::config()->setGroup( TQString::tqfromLatin1("ChatWindowSettings") );
+ KGlobal::config()->setGroup( TQString::fromLatin1("ChatWindowSettings") );
m_tabBar = new KTabWidget( mainArea );
- m_tabBar->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
- m_tabBar->setHoverCloseButton(KGlobal::config()->readBoolEntry( TQString::tqfromLatin1("HoverClose"), false ));
+ m_tabBar->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
+ m_tabBar->setHoverCloseButton(KGlobal::config()->readBoolEntry( TQString::fromLatin1("HoverClose"), false ));
m_tabBar->setTabReorderingEnabled(true);
#if KDE_IS_VERSION(3,4,0)
m_tabBar->setAutomaticResizeTabs(true);
@@ -621,7 +621,7 @@ void KopeteChatWindow::createTabBar()
else
setActiveView( chatViewList.first() );
- int tabPosition = KGlobal::config()->readNumEntry( TQString::tqfromLatin1("Tab Placement") , 0 );
+ int tabPosition = KGlobal::config()->readNumEntry( TQString::fromLatin1("Tab Placement") , 0 );
slotPlaceTabs( tabPosition );
}
}
@@ -637,7 +637,7 @@ void KopeteChatWindow::addTab( ChatView *view )
Kopete::Contact *c=0L;
for ( Kopete::Contact *contact = chatMembers.first(); contact; contact = chatMembers.next() )
{
- if(!c || c->onlinetqStatus() < contact->onlinetqStatus())
+ if(!c || c->onlineStatus() < contact->onlineStatus())
c=contact;
}
TQPixmap pluginIcon = c ? view->msgManager()->contactOnlineStatus( c ).iconFor( c) : SmallIcon( view->msgManager()->protocol()->pluginIcon() );
@@ -829,7 +829,7 @@ void KopeteChatWindow::updateBackground( const TQPixmap &pm )
backgroundFile->unlink();
}
- backgroundFile = new KTempFile( TQString(), TQString::tqfromLatin1( ".bmp" ) );
+ backgroundFile = new KTempFile( TQString(), TQString::fromLatin1( ".bmp" ) );
pm.save( backgroundFile->name(), "BMP" );
TQTimer::singleShot( 100, this, TQT_SLOT( slotEnableUpdateBg() ) );
}
@@ -892,7 +892,7 @@ void KopeteChatWindow::setActiveView( TQWidget *widget )
}
setCaption( m_activeView->caption() );
- settqStatus( m_activeView->statusText() );
+ setStatus( m_activeView->statusText() );
m_activeView->setFocus();
updateSpellCheckAction();
slotUpdateSendEnabled();
@@ -909,7 +909,7 @@ void KopeteChatWindow::slotUpdateCaptionIcons( ChatView *view )
Kopete::Contact *c=0L;
for ( Kopete::Contact *contact = chatMembers.first(); contact; contact = chatMembers.next() )
{
- if(!c || c->onlinetqStatus() < contact->onlinetqStatus())
+ if(!c || c->onlineStatus() < contact->onlineStatus())
c=contact;
}
@@ -986,15 +986,15 @@ void KopeteChatWindow::slotPrepareContactMenu(void)
p, TQT_SLOT(deleteLater() ) );
if( contact->metaContact() )
- contactsMenu->insertItem( contact->onlinetqStatus().iconFor( contact ) , contact->metaContact()->displayName(), p );
+ contactsMenu->insertItem( contact->onlineStatus().iconFor( contact ) , contact->metaContact()->displayName(), p );
else
- contactsMenu->insertItem( contact->onlinetqStatus().iconFor( contact ) , contact->contactId(), p );
+ contactsMenu->insertItem( contact->onlineStatus().iconFor( contact ) , contact->contactId(), p );
//FIXME: This number should be a config option
if( ++contactCount == 15 && contact != m_them.getLast() )
{
KActionMenu *moreMenu = new KActionMenu( i18n("More..."),
- TQString::tqfromLatin1("folder_open"), TQT_TQOBJECT(contactsMenu) );
+ TQString::fromLatin1("folder_open"), TQT_TQOBJECT(contactsMenu) );
connect ( actionContactMenu->popupMenu(), TQT_SIGNAL(aboutToHide()),
moreMenu, TQT_SLOT(deleteLater() ) );
moreMenu->plug( contactsMenu );
@@ -1032,9 +1032,9 @@ void KopeteChatWindow::readOptions()
// load and apply config file settings affecting the appearance of the UI
// kdDebug(14010) << k_funcinfo << endl;
KConfig *config = KGlobal::config();
- applyMainWindowSettings( config, TQString::tqfromLatin1( "KopeteChatWindow" ) );
- config->setGroup( TQString::tqfromLatin1("ChatWindowSettings") );
- m_showFormatToolbar = config->readBoolEntry( TQString::tqfromLatin1("Show Format Toolbar"), true );
+ applyMainWindowSettings( config, TQString::fromLatin1( "KopeteChatWindow" ) );
+ config->setGroup( TQString::fromLatin1("ChatWindowSettings") );
+ m_showFormatToolbar = config->readBoolEntry( TQString::fromLatin1("Show Format Toolbar"), true );
}
void KopeteChatWindow::saveOptions()
@@ -1044,12 +1044,12 @@ void KopeteChatWindow::saveOptions()
KConfig *config = KGlobal::config();
// saves menubar,toolbar and statusbar setting
- saveMainWindowSettings( config, TQString::tqfromLatin1( "KopeteChatWindow" ) );
- config->setGroup( TQString::tqfromLatin1("ChatWindowSettings") );
+ saveMainWindowSettings( config, TQString::fromLatin1( "KopeteChatWindow" ) );
+ config->setGroup( TQString::fromLatin1("ChatWindowSettings") );
if( m_tabBar )
- config->writeEntry ( TQString::tqfromLatin1("Tab Placement"), m_tabBar->tabPosition() );
+ config->writeEntry ( TQString::fromLatin1("Tab Placement"), m_tabBar->tabPosition() );
- config->writeEntry( TQString::tqfromLatin1("Show Format Toolbar"), m_showFormatToolbar );
+ config->writeEntry( TQString::fromLatin1("Show Format Toolbar"), m_showFormatToolbar );
config->sync();
}
@@ -1214,7 +1214,7 @@ void KopeteChatWindow::slotConfKeys()
void KopeteChatWindow::slotConfToolbar()
{
- saveMainWindowSettings(KGlobal::config(), TQString::tqfromLatin1( "KopeteChatWindow" ));
+ saveMainWindowSettings(KGlobal::config(), TQString::fromLatin1( "KopeteChatWindow" ));
KEditToolbar *dlg = new KEditToolbar(factory(), this );
if (dlg->exec())
{
@@ -1222,7 +1222,7 @@ void KopeteChatWindow::slotConfToolbar()
createGUI( m_activeView->editPart() );
else
createGUI( 0L );
- applyMainWindowSettings(KGlobal::config(), TQString::tqfromLatin1( "KopeteChatWindow" ));
+ applyMainWindowSettings(KGlobal::config(), TQString::fromLatin1( "KopeteChatWindow" ));
}
delete dlg;
}
@@ -1256,7 +1256,7 @@ void KopeteChatWindow::updateChatState( ChatView* cv, int newState )
void KopeteChatWindow::updateChatTooltip( ChatView* cv )
{
if ( m_tabBar )
- m_tabBar->setTabToolTip( cv, TQString::tqfromLatin1("<qt>%1</qt>").tqarg( cv->caption() ) );
+ m_tabBar->setTabToolTip( cv, TQString::fromLatin1("<qt>%1</qt>").arg( cv->caption() ) );
}
void KopeteChatWindow::updateChatLabel()
diff --git a/kopete/kopete/chatwindow/kopetechatwindow.h b/kopete/kopete/chatwindow/kopetechatwindow.h
index 0e101fc3..8929d4c4 100644
--- a/kopete/kopete/chatwindow/kopetechatwindow.h
+++ b/kopete/kopete/chatwindow/kopetechatwindow.h
@@ -93,7 +93,7 @@ public:
ChatView *activeView();
void updateMembersActions();
- void settqStatus( const TQString & );
+ void setStatus( const TQString & );
/**
* Reimplemented from KMainWindow - asks each ChatView in the window if it is ok to close the window
diff --git a/kopete/kopete/chatwindow/kopetechatwindowstyle.cpp b/kopete/kopete/chatwindow/kopetechatwindowstyle.cpp
index 5eba33f0..541e8027 100644
--- a/kopete/kopete/chatwindow/kopetechatwindowstyle.cpp
+++ b/kopete/kopete/chatwindow/kopetechatwindowstyle.cpp
@@ -21,7 +21,7 @@
#include <tqfile.h>
#include <tqdir.h>
#include <tqstringlist.h>
-#include <tqtextstream.h>
+#include <textstream.h>
// KDE includes
#include <kdebug.h>
@@ -159,7 +159,7 @@ void ChatWindowStyle::listVariants()
// Retrieve only the file name.
variantName = variantName.left(variantName.findRev("."));
// variantPath is relative to baseHref.
- variantPath = TQString("Variants/%1").tqarg(*it);
+ variantPath = TQString("Variants/%1").arg(*it);
d->variantsList.insert(variantName, variantPath);
}
}
diff --git a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp
index 73d62080..67e36f3d 100644
--- a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp
+++ b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp
@@ -164,7 +164,7 @@ int ChatWindowStyleManager::installStyle(const TQString &styleBundlePath)
// Each time we found a correspondance to a theme bundle, we add a point to validResult.
// A valid style bundle must have:
// -a Contents, Contents/Resources, Co/Res/Incoming, Co/Res/Outgoing dirs
- // main.css, Footer.html, Header.html, tqStatus.html files in Contents/Ressources.
+ // main.css, Footer.html, Header.html, Status.html files in Contents/Ressources.
// So for a style bundle to be valid, it must have a result greather than 8, because we test for 8 required entry.
int validResult = 0;
TQStringList entries = rootDir->entries();
diff --git a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.h b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.h
index fef09b09..74f145ca 100644
--- a/kopete/kopete/chatwindow/kopetechatwindowstylemanager.h
+++ b/kopete/kopete/chatwindow/kopetechatwindowstylemanager.h
@@ -54,14 +54,14 @@ public:
typedef TQMap<TQString, TQString> StyleList;
/**
- * The StyleInstalltqStatus enum. It gives better return value for installStyle().
+ * The StyleInstallStatus enum. It gives better return value for installStyle().
* - StyleInstallOk : The install went fine.
* - StyleNotValid : The archive didn't contain a valid Chat Window style.
* - StyleNoDirectoryValid : It didn't find a suitable directory to install the theme.
* - StyleCannotOpen : The archive couldn't be openned.
* - StyleUnknow : Unknow error.
*/
- enum StyleInstalltqStatus { StyleInstallOk = 0, StyleNotValid, StyleNoDirectoryValid, StyleCannotOpen, StyleUnknow };
+ enum StyleInstallStatus { StyleInstallOk = 0, StyleNotValid, StyleNoDirectoryValid, StyleCannotOpen, StyleUnknow };
/**
* Destructor.
@@ -91,7 +91,7 @@ public slots:
* Note that you must pass a path to a archive.
*
* @param styleBundlePath Path to the container file to install.
- * @return A status code from StyleInstalltqStatus enum.
+ * @return A status code from StyleInstallStatus enum.
*/
int installStyle(const TQString &styleBundlePath);
diff --git a/kopete/kopete/chatwindow/kopeteemailwindow.cpp b/kopete/kopete/chatwindow/kopeteemailwindow.cpp
index bd726cb8..0d798792 100644
--- a/kopete/kopete/chatwindow/kopeteemailwindow.cpp
+++ b/kopete/kopete/chatwindow/kopeteemailwindow.cpp
@@ -55,7 +55,7 @@
#include <kgenericfactory.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqtimer.h>
#include <tqvbox.h>
@@ -147,7 +147,7 @@ KopeteEmailWindow::KopeteEmailWindow( Kopete::ChatSession *manager, EmailWindowP
this, TQT_SLOT( messageSentSuccessfully() ));
TQWidget *containerWidget = new TQWidget( v );
- containerWidget->tqsetSizePolicy( TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
+ containerWidget->setSizePolicy( TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
TQHBoxLayout *h = new TQHBoxLayout( containerWidget, 4, 4 );
h->addStretch();
@@ -176,7 +176,7 @@ KopeteEmailWindow::KopeteEmailWindow( Kopete::ChatSession *manager, EmailWindowP
toggleMode( Send );
KConfig *config = KGlobal::config();
- applyMainWindowSettings( config, TQString::tqfromLatin1( "KopeteEmailWindow" ) );
+ applyMainWindowSettings( config, TQString::fromLatin1( "KopeteEmailWindow" ) );
d->sendInProgress = false;
@@ -196,7 +196,7 @@ KopeteEmailWindow::~KopeteEmailWindow()
// saves menubar, toolbar and statusbar setting
KConfig *config = KGlobal::config();
- saveMainWindowSettings( config, TQString::tqfromLatin1( "KopeteEmailWindow" ) );
+ saveMainWindowSettings( config, TQString::fromLatin1( "KopeteEmailWindow" ) );
config->sync();
delete d;
@@ -206,7 +206,7 @@ void KopeteEmailWindow::initActions(void)
{
KActionCollection *coll = actionCollection();
- d->chatSend = new KAction( i18n( "&Send Message" ), TQString::tqfromLatin1( "mail_send" ), 0,
+ d->chatSend = new KAction( i18n( "&Send Message" ), TQString::fromLatin1( "mail_send" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotReplySend() ), coll, "chat_send" );
//Default to 'Return' for sending messages
d->chatSend->setShortcut( TQKeySequence( Key_Return ) );
@@ -217,11 +217,11 @@ void KopeteEmailWindow::initActions(void)
KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), coll);
KStdAction::paste( TQT_TQOBJECT(d->editPart->widget()), TQT_SLOT( paste() ), coll );
- new KAction( i18n( "&Set Font..." ), TQString::tqfromLatin1( "charset" ), 0,
+ new KAction( i18n( "&Set Font..." ), TQString::fromLatin1( "charset" ), 0,
d->editPart, TQT_SLOT( setFont() ), coll, "format_font" );
- new KAction( i18n( "Set Text &Color..." ), TQString::tqfromLatin1( "pencil" ), 0,
+ new KAction( i18n( "Set Text &Color..." ), TQString::fromLatin1( "pencil" ), 0,
d->editPart, TQT_SLOT( setFgColor() ), coll, "format_color" );
- new KAction( i18n( "Set &Background Color..." ), TQString::tqfromLatin1( "fill" ), 0,
+ new KAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0,
d->editPart, TQT_SLOT( setBgColor() ), coll, "format_bgcolor" );
KStdAction::showMenubar( TQT_TQOBJECT(this), TQT_SLOT( slotViewMenuBar() ), coll );
@@ -238,8 +238,8 @@ void KopeteEmailWindow::initActions(void)
KopeteStdAction::preferences( coll , "settings_prefs" );
// The animated toolbarbutton
- d->normalIcon = TQPixmap( BarIcon( TQString::tqfromLatin1( "kopete" ) ) );
- d->animIcon = KGlobal::iconLoader()->loadMovie( TQString::tqfromLatin1( "newmessage" ), KIcon::Toolbar);
+ d->normalIcon = TQPixmap( BarIcon( TQString::fromLatin1( "kopete" ) ) );
+ d->animIcon = KGlobal::iconLoader()->loadMovie( TQString::fromLatin1( "newmessage" ), KIcon::Toolbar);
d->animIcon.pause();
d->anim = new TQLabel( this, "kde toolbar widget" );
@@ -247,9 +247,9 @@ void KopeteEmailWindow::initActions(void)
d->anim->setPixmap( d->normalIcon );
new KWidgetAction( d->anim, i18n("Toolbar Animation"), 0, 0, 0, coll, "toolbar_animation" );
- setXMLFile( TQString::tqfromLatin1( "kopeteemailwindow.rc" ) );
+ setXMLFile( TQString::fromLatin1( "kopeteemailwindow.rc" ) );
createGUI( d->editPart );
- //createGUI( TQString::tqfromLatin1( "kopeteemailwindow.rc" ) );
+ //createGUI( TQString::fromLatin1( "kopeteemailwindow.rc" ) );
guiFactory()->addClient(m_manager);
}
@@ -280,12 +280,12 @@ void KopeteEmailWindow::slotSmileyActivated(const TQString &sm )
void KopeteEmailWindow::slotConfToolbar()
{
- saveMainWindowSettings(KGlobal::config(), TQString::tqfromLatin1( "KopeteEmailWindow" ));
- KEditToolbar *dlg = new KEditToolbar(actionCollection(), TQString::tqfromLatin1("kopeteemailwindow.rc") );
+ saveMainWindowSettings(KGlobal::config(), TQString::fromLatin1( "KopeteEmailWindow" ));
+ KEditToolbar *dlg = new KEditToolbar(actionCollection(), TQString::fromLatin1("kopeteemailwindow.rc") );
if (dlg->exec())
{
createGUI( d->editPart );
- applyMainWindowSettings(KGlobal::config(), TQString::tqfromLatin1( "KopeteEmailWindow" ));
+ applyMainWindowSettings(KGlobal::config(), TQString::fromLatin1( "KopeteEmailWindow" ));
}
delete dlg;
}
@@ -344,7 +344,7 @@ void KopeteEmailWindow::updateNextButton()
else
d->btnReadPrev->setEnabled( true );
- d->btnReadNext->setText( i18n( "(%1) Next >>" ).tqarg( d->messageQueue.count() - d->queuePosition ) );
+ d->btnReadNext->setText( i18n( "(%1) Next >>" ).arg( d->messageQueue.count() - d->queuePosition ) );
}
void KopeteEmailWindow::slotUpdateReplySend()
@@ -420,25 +420,25 @@ bool KopeteEmailWindow::closeView( bool force )
{
TQString shortCaption = caption();
if( shortCaption.length() > 40 )
- shortCaption = shortCaption.left( 40 ) + TQString::tqfromLatin1("...");
+ shortCaption = shortCaption.left( 40 ) + TQString::fromLatin1("...");
response = KMessageBox::warningContinueCancel(this, i18n("<qt>You are about to leave the group chat session <b>%1</b>.<br>"
- "You will not receive future messages from this conversation.</qt>").tqarg(shortCaption), i18n("Closing Group Chat"),
- i18n("Cl&ose Chat"), TQString::tqfromLatin1("AskCloseGroupChat"));
+ "You will not receive future messages from this conversation.</qt>").arg(shortCaption), i18n("Closing Group Chat"),
+ i18n("Cl&ose Chat"), TQString::fromLatin1("AskCloseGroupChat"));
}
if( !d->unreadMessageFrom.isNull() && ( response == KMessageBox::Continue ) )
{
response = KMessageBox::warningContinueCancel(this, i18n("<qt>You have received a message from <b>%1</b> in the last "
- "second. Are you sure you want to close this chat?</qt>").tqarg(d->unreadMessageFrom), i18n("Unread Message"),
- i18n("Cl&ose Chat"), TQString::tqfromLatin1("AskCloseChatRecentMessage"));
+ "second. Are you sure you want to close this chat?</qt>").arg(d->unreadMessageFrom), i18n("Unread Message"),
+ i18n("Cl&ose Chat"), TQString::fromLatin1("AskCloseChatRecentMessage"));
}
if( d->sendInProgress && ( response == KMessageBox::Continue ) )
{
response = KMessageBox::warningContinueCancel(this, i18n("You have a message send in progress, which will be "
"aborted if this chat is closed. Are you sure you want to close this chat?"), i18n("Message in Transit"),
- i18n("Cl&ose Chat"), TQString::tqfromLatin1("AskCloseChatMessageInProgress") );
+ i18n("Cl&ose Chat"), TQString::fromLatin1("AskCloseChatMessageInProgress") );
}
}
diff --git a/kopete/kopete/chatwindow/krichtexteditpart.cpp b/kopete/kopete/chatwindow/krichtexteditpart.cpp
index ff86940d..16c398d5 100644
--- a/kopete/kopete/chatwindow/krichtexteditpart.cpp
+++ b/kopete/kopete/chatwindow/krichtexteditpart.cpp
@@ -7,7 +7,7 @@
#include <kconfig.h>
#include <tdeversion.h>
#include <tqapplication.h>
-#include <tqclipboard.h>
+#include <clipboard.h>
#include <tqevent.h>
#include <kparts/genericfactory.h>
#include <tqrichtext_p.h>
@@ -200,10 +200,10 @@ void KopeteRichTextEditPart::createActions( KActionCollection *ac )
connect( action_align_justify, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignJustify(bool) ) );
- action_align_left->setExclusiveGroup( "tqalignment" );
- action_align_center->setExclusiveGroup( "tqalignment" );
- action_align_right->setExclusiveGroup( "tqalignment" );
- action_align_justify->setExclusiveGroup( "tqalignment" );
+ action_align_left->setExclusiveGroup( "alignment" );
+ action_align_center->setExclusiveGroup( "alignment" );
+ action_align_right->setExclusiveGroup( "alignment" );
+ action_align_justify->setExclusiveGroup( "alignment" );
connect( editor, TQT_SIGNAL( cursorPositionChanged( int,int ) ),
this, TQT_SLOT( updateAligment() ) );
@@ -268,7 +268,7 @@ void KopeteRichTextEditPart::clear()
void KopeteRichTextEditPart::updateAligment()
{
- int align = editor->tqalignment();
+ int align = editor->alignment();
switch ( align )
{
@@ -351,7 +351,7 @@ void KopeteRichTextEditPart::writeConfig()
config->writeEntry("FontUnderline", mFont.underline() );
config->writeEntry("BgColor", mBgColor );
config->writeEntry("FgColor", mFgColor );
- config->writeEntry("EditAlignment", editor->tqalignment() );
+ config->writeEntry("EditAlignment", editor->alignment() );
config->sync();
}
@@ -515,28 +515,28 @@ void KopeteRichTextEditPart::setUnderline( bool b )
void KopeteRichTextEditPart::setAlignLeft( bool yes )
{
if ( yes )
- editor->tqsetAlignment( AlignLeft );
+ editor->setAlignment( AlignLeft );
writeConfig();
}
void KopeteRichTextEditPart::setAlignRight( bool yes )
{
if ( yes )
- editor->tqsetAlignment( AlignRight );
+ editor->setAlignment( AlignRight );
writeConfig();
}
void KopeteRichTextEditPart::setAlignCenter( bool yes )
{
if ( yes )
- editor->tqsetAlignment( AlignCenter );
+ editor->setAlignment( AlignCenter );
writeConfig();
}
void KopeteRichTextEditPart::setAlignJustify( bool yes )
{
if ( yes )
- editor->tqsetAlignment( AlignJustify );
+ editor->setAlignment( AlignJustify );
writeConfig();
}
diff --git a/kopete/kopete/chatwindow/tests/chatwindowstyle_test.cpp b/kopete/kopete/chatwindow/tests/chatwindowstyle_test.cpp
index 91626e66..cd44bc02 100644
--- a/kopete/kopete/chatwindow/tests/chatwindowstyle_test.cpp
+++ b/kopete/kopete/chatwindow/tests/chatwindowstyle_test.cpp
@@ -92,7 +92,7 @@ void ChatWindowStyle_Test::testHtml()
"<div>%message%</div>\n"
"<div id=\"insert\">"
);
- TQString exceptedtqStatus = TQString::fromUtf8(
+ TQString exceptedStatus = TQString::fromUtf8(
"<div>%message%</div>\n"
"<div>%time%</div>\n"
"<div>%time{%H:%M}%</div>");
@@ -103,7 +103,7 @@ void ChatWindowStyle_Test::testHtml()
CHECK(testStyle->getNextIncomingHtml(), exceptedNextIncoming);
CHECK(testStyle->getOutgoingHtml(), exceptedOutgoing);
CHECK(testStyle->getNextOutgoingHtml(), exceptedNextOutgoing);
- CHECK(testStyle->getStatusHtml(), exceptedtqStatus);
+ CHECK(testStyle->getStatusHtml(), exceptedStatus);
}
void ChatWindowStyle_Test::testAction()
diff --git a/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp b/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp
index c3dd3edc..f358150b 100644
--- a/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp
+++ b/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp
@@ -24,7 +24,7 @@
#include <tqdir.h>
#include <tqfile.h>
#include <tqdatetime.h>
-#include <tqtextstream.h>
+#include <textstream.h>
// KDE includes
#include <kapplication.h>
@@ -101,7 +101,7 @@ bool createContact( const TQString &/*contactId*/, Kopete::MetaContact */*parent
return true;
}
-void connect( const Kopete::OnlineStatus& /*initialtqStatus*/)
+void connect( const Kopete::OnlineStatus& /*initialStatus*/)
{
// do nothing
}
@@ -205,8 +205,8 @@ void ChatWindowStyleRendering_Test::testHeaderRendering()
"<div>Outgoing/buddy_icon.png</div>\n"
"<div>%1</div>\n"
"<div>%2</div>"
- ).tqarg(KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), true, true ) )
- .tqarg(TQDateTime::tqcurrentDateTime().toString("hh:mm"));
+ ).arg(KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true, true ) )
+ .arg(TQDateTime::currentDateTime().toString("hh:mm"));
TQString headerHtml = d->testStyle->getHeaderHtml();
TQString resultHtml;
@@ -230,7 +230,7 @@ void ChatWindowStyleRendering_Test::testMessageRendering()
"<div>%1</div>\n"
"<div>%2</div>\n"
"<div id=\"insert\">"
- ).tqarg( TQDateTime::tqcurrentDateTime().toString( "hh:mm:ss" ), TQDateTime::tqcurrentDateTime().toString( "hh:mm" ) );
+ ).arg( TQDateTime::currentDateTime().toString( "hh:mm:ss" ), TQDateTime::currentDateTime().toString( "hh:mm" ) );
TQString expectedOutgoingHtml = TQString(
"Outgoing:\n"
@@ -242,7 +242,7 @@ void ChatWindowStyleRendering_Test::testMessageRendering()
"<div>%1</div>\n"
"<div>%2</div>\n"
"<div id=\"insert\">"
- ).tqarg( TQDateTime::tqcurrentDateTime().toString( "hh:mm:ss" ), TQDateTime::tqcurrentDateTime().toString( "hh:mm" ) );
+ ).arg( TQDateTime::currentDateTime().toString( "hh:mm:ss" ), TQDateTime::currentDateTime().toString( "hh:mm" ) );
TQString tempHtml;
@@ -272,13 +272,13 @@ void ChatWindowStyleRendering_Test::testStatusRendering()
"<div><span style=\"\"class=\"KopeteMessageBody\">A contact went offline.</span></div>\n"
"<div>%1</div>\n"
"<div>%2</div>"
- ).tqarg( TQDateTime::tqcurrentDateTime().toString( "hh:mm:ss" ), TQDateTime::tqcurrentDateTime().toString( "hh:mm" ) );
+ ).arg( TQDateTime::currentDateTime().toString( "hh:mm:ss" ), TQDateTime::currentDateTime().toString( "hh:mm" ) );
TQString statusHtml = d->testStyle->getStatusHtml();
TQString resultHtml;
- Kopete::Message msgtqStatus(0,0, TQString::fromUtf8("A contact went offline."), Kopete::Message::Internal);
- resultHtml = chatPart->formatStyleKeywords(statusHtml, msgtqStatus);
+ Kopete::Message msgStatus(0,0, TQString::fromUtf8("A contact went offline."), Kopete::Message::Internal);
+ resultHtml = chatPart->formatStyleKeywords(statusHtml, msgStatus);
CHECK(resultHtml, expectedStatusHtml);
}
@@ -291,8 +291,8 @@ void ChatWindowStyleRendering_Test::testFullRendering()
Kopete::Message msgIn1(d->myself, d->other, TQString("Hello there !"), Kopete::Message::Inbound);
Kopete::Message msgIn2(d->myself, d->other, TQString("How are you doing ?"), Kopete::Message::Inbound);
Kopete::Message msgOut1(d->other, d->myself, TQString("Fine and you ?"), Kopete::Message::Outbound);
- Kopete::Message msgtqStatus1(d->myself,d->other, TQString("You are now marked as away."), Kopete::Message::Internal);
- Kopete::Message msgtqStatus2(d->myself,d->other, TQString("You are now marked as online."), Kopete::Message::Internal);
+ Kopete::Message msgStatus1(d->myself,d->other, TQString("You are now marked as away."), Kopete::Message::Internal);
+ Kopete::Message msgStatus2(d->myself,d->other, TQString("You are now marked as online."), Kopete::Message::Internal);
Kopete::Message msgIn3(d->myself, d->other, TQString("Well, doing some tests."), Kopete::Message::Internal);
Kopete::Message msgOut2(d->other, d->myself, TQString("All your bases are belong to us."), Kopete::Message::Outbound);
Kopete::Message msgOut3(d->other, d->myself, TQString("You are on the way to destruction"), Kopete::Message::Outbound);
@@ -304,8 +304,8 @@ void ChatWindowStyleRendering_Test::testFullRendering()
chatPart->appendMessage(msgIn1);
chatPart->appendMessage(msgIn2);
chatPart->appendMessage(msgOut1);
- chatPart->appendMessage(msgtqStatus1);
- chatPart->appendMessage(msgtqStatus2);
+ chatPart->appendMessage(msgStatus1);
+ chatPart->appendMessage(msgStatus2);
chatPart->appendMessage(msgIn3);
chatPart->appendMessage(msgOut2);
chatPart->appendMessage(msgOut3);
diff --git a/kopete/kopete/config/accounts/kopeteaccountconfig.cpp b/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
index 147c6f17..21cf6e86 100644
--- a/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
+++ b/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
@@ -19,7 +19,7 @@
#include "kopeteaccountconfig.h"
#include <tqcheckbox.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqguardedptr.h>
#include <kcolorbutton.h>
@@ -231,7 +231,7 @@ void KopeteAccountConfig::slotRemoveAccount()
return;
Kopete::Account *i = lvi->account();
- if ( KMessageBox::warningContinueCancel( this, i18n( "Are you sure you want to remove the account \"%1\"?" ).tqarg( i->accountLabel() ),
+ if ( KMessageBox::warningContinueCancel( this, i18n( "Are you sure you want to remove the account \"%1\"?" ).arg( i->accountLabel() ),
i18n( "Remove Account" ), KGuiItem(i18n( "Remove Account" ), "editdelete"),
"askRemoveAccount", KMessageBox::Notify | KMessageBox::Dangerous ) == KMessageBox::Continue )
{
diff --git a/kopete/kopete/config/accounts/kopeteaccountconfigbase.ui b/kopete/kopete/config/accounts/kopeteaccountconfigbase.ui
index 112d01f5..321adac8 100644
--- a/kopete/kopete/config/accounts/kopeteaccountconfigbase.ui
+++ b/kopete/kopete/config/accounts/kopeteaccountconfigbase.ui
@@ -131,7 +131,7 @@ The icon of every contact of this account will be coloured with this color. Usef
<property name="sizeType">
<enum>Minimum</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -140,7 +140,7 @@ The icon of every contact of this account will be coloured with this color. Usef
</spacer>
<widget class="TQLayoutWidget" row="7" column="1" rowspan="1" colspan="2">
<property name="name">
- <cstring>tqlayout27</cstring>
+ <cstring>layout27</cstring>
</property>
<grid>
<property name="name">
@@ -150,7 +150,7 @@ The icon of every contact of this account will be coloured with this color. Usef
<property name="name">
<cstring>mButtonUp</cstring>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>60</width>
<height>10</height>
@@ -177,7 +177,7 @@ The priority is used to determine which contact to use when you click on a metac
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -188,7 +188,7 @@ The priority is used to determine which contact to use when you click on a metac
<property name="name">
<cstring>mButtonDown</cstring>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>60</width>
<height>10</height>
@@ -217,7 +217,7 @@ The priority is used to determine which contact to use when you click on a metac
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>70</width>
<height>50</height>
@@ -234,7 +234,7 @@ The priority is used to determine which contact to use when you click on a metac
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>70</width>
<height>20</height>
diff --git a/kopete/kopete/config/appearance/appearanceconfig.cpp b/kopete/kopete/config/appearance/appearanceconfig.cpp
index ac6c4a27..d4b57b05 100644
--- a/kopete/kopete/config/appearance/appearanceconfig.cpp
+++ b/kopete/kopete/config/appearance/appearanceconfig.cpp
@@ -31,7 +31,7 @@
#include <tqcheckbox.h>
#include <tqdir.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqhbuttongroup.h>
#include <tqspinbox.h>
#include <tqslider.h>
@@ -242,7 +242,7 @@ AppearanceConfig::AppearanceConfig(TQWidget *parent, const char* /*name*/, const
htmlWidget->setMarginWidth(4);
htmlWidget->setMarginHeight(4);
htmlWidget->setFocusPolicy(TQ_NoFocus);
- htmlWidget->tqsetSizePolicy(
+ htmlWidget->setSizePolicy(
TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
l->addWidget(htmlWidget);
// Add the preview message to the ChatMessagePart
@@ -548,9 +548,9 @@ void AppearanceConfig::slotSelectedEmoticonsThemeChanged()
TQString newContentText = "<qt>";
for(TQStringList::Iterator it = smileys.begin(); it != smileys.end(); ++it )
- newContentText += TQString::tqfromLatin1("<img src=\"%1\"> ").tqarg(*it);
+ newContentText += TQString::fromLatin1("<img src=\"%1\"> ").arg(*it);
- newContentText += TQString::tqfromLatin1("</qt>");
+ newContentText += TQString::fromLatin1("</qt>");
d->mPrfsEmoticons->icon_theme_preview->setText(newContentText);
emitChanged();
}
@@ -673,7 +673,7 @@ void AppearanceConfig::slotDeleteChatStyle()
TQString stylePathToDelete = d->styleItemMap[d->mPrfsChatWindow->styleList->selectedItem()];
if( ChatWindowStyleManager::self()->removeStyle(stylePathToDelete) )
{
- KMessageBox::queuedMessageBox(this, KMessageBox::Information, i18n("It's the deleted style name", "The style %1 was successfully deleted.").tqarg(styleName));
+ KMessageBox::queuedMessageBox(this, KMessageBox::Information, i18n("It's the deleted style name", "The style %1 was successfully deleted.").arg(styleName));
// Get the first item in the stye List.
TQString stylePath = (*d->styleItemMap.begin());
@@ -682,7 +682,7 @@ void AppearanceConfig::slotDeleteChatStyle()
}
else
{
- KMessageBox::queuedMessageBox(this, KMessageBox::Information, i18n("It's the deleted style name", "An error occured while trying to delete %1 style.").tqarg(styleName));
+ KMessageBox::queuedMessageBox(this, KMessageBox::Information, i18n("It's the deleted style name", "An error occured while trying to delete %1 style.").arg(styleName));
}
}
@@ -728,7 +728,7 @@ FakeAccount(Kopete::Protocol *parent, const TQString &accountID, const char *nam
~FakeAccount()
{}
bool createContact( const TQString &/*contactId*/, Kopete::MetaContact */*parentContact*/ ){return true;}
-void connect( const Kopete::OnlineStatus& /*initialtqStatus*/){}
+void connect( const Kopete::OnlineStatus& /*initialStatus*/){}
void disconnect(){}
void setOnlineStatus( const Kopete::OnlineStatus& /*status*/ , const TQString &/*reason*/){}
};
diff --git a/kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui b/kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui
index 35fa6489..67dbaa07 100644
--- a/kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui
+++ b/kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui
@@ -96,7 +96,7 @@
</widget>
<widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
- <cstring>tqlayout10</cstring>
+ <cstring>layout10</cstring>
</property>
<hbox>
<property name="name">
diff --git a/kopete/kopete/config/appearance/appearanceconfig_colors.ui b/kopete/kopete/config/appearance/appearanceconfig_colors.ui
index 880f2a38..8943bc6c 100644
--- a/kopete/kopete/config/appearance/appearanceconfig_colors.ui
+++ b/kopete/kopete/config/appearance/appearanceconfig_colors.ui
@@ -203,7 +203,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout9</cstring>
+ <cstring>layout9</cstring>
</property>
<hbox>
<property name="name">
@@ -219,7 +219,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -228,7 +228,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<vbox>
<property name="name">
@@ -236,7 +236,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout5</cstring>
+ <cstring>layout5</cstring>
</property>
<hbox>
<property name="name">
@@ -265,7 +265,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout6</cstring>
+ <cstring>layout6</cstring>
</property>
<hbox>
<property name="name">
@@ -294,7 +294,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</cstring>
</property>
<hbox>
<property name="name">
@@ -327,7 +327,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout6</cstring>
+ <cstring>layout6</cstring>
</property>
<grid>
<property name="name">
@@ -382,7 +382,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>80</height>
diff --git a/kopete/kopete/config/appearance/appearanceconfig_contactlist.ui b/kopete/kopete/config/appearance/appearanceconfig_contactlist.ui
index d15d2d71..d92f9467 100644
--- a/kopete/kopete/config/appearance/appearanceconfig_contactlist.ui
+++ b/kopete/kopete/config/appearance/appearanceconfig_contactlist.ui
@@ -21,7 +21,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -56,7 +56,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -72,7 +72,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -248,7 +248,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout2</cstring>
+ <cstring>layout2</cstring>
</property>
<hbox>
<property name="name">
@@ -264,7 +264,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -315,7 +315,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>81</width>
<height>20</height>
@@ -328,7 +328,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<hbox>
<property name="name">
@@ -352,7 +352,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -371,7 +371,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui b/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
index 49c4cd47..6af82e16 100644
--- a/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
+++ b/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
@@ -80,7 +80,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32767</width>
<height>64</height>
@@ -92,7 +92,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout2</cstring>
+ <cstring>layout2</cstring>
</property>
<hbox>
<property name="name">
@@ -165,7 +165,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>31</width>
<height>20</height>
diff --git a/kopete/kopete/config/appearance/emoticonseditdialog.cpp b/kopete/kopete/config/appearance/emoticonseditdialog.cpp
index d14e94f5..e6e8d524 100644
--- a/kopete/kopete/config/appearance/emoticonseditdialog.cpp
+++ b/kopete/kopete/config/appearance/emoticonseditdialog.cpp
@@ -27,7 +27,7 @@
#include <kio/job.h>
#include <tqpixmap.h>
#include <tqheader.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
@@ -197,14 +197,14 @@ void EmoticonsEditDialog::slotEditClicked()
TQString f = mMainWidget->klvEmoticons->selectedItem()->text(2);
KStandardDirs *dir = KGlobal::dirs();
- emo = dir->findResource( "emoticons", themeName + TQString::tqfromLatin1( "/" ) + f );
+ emo = dir->findResource( "emoticons", themeName + TQString::fromLatin1( "/" ) + f );
if( emo.isNull() )
- emo = dir->findResource( "emoticons", themeName + TQString::tqfromLatin1( "/" ) + f + TQString::tqfromLatin1( ".mng" ) );
+ emo = dir->findResource( "emoticons", themeName + TQString::fromLatin1( "/" ) + f + TQString::fromLatin1( ".mng" ) );
if ( emo.isNull() )
- emo = dir->findResource( "emoticons", themeName + TQString::tqfromLatin1( "/" ) + f + TQString::tqfromLatin1( ".png" ) );
+ emo = dir->findResource( "emoticons", themeName + TQString::fromLatin1( "/" ) + f + TQString::fromLatin1( ".png" ) );
if ( emo.isNull() )
- emo = dir->findResource( "emoticons", themeName + TQString::tqfromLatin1( "/" ) + f + TQString::tqfromLatin1( ".gif" ) );
+ emo = dir->findResource( "emoticons", themeName + TQString::fromLatin1( "/" ) + f + TQString::fromLatin1( ".gif" ) );
if ( emo.isNull() )
return;
}
diff --git a/kopete/kopete/config/appearance/emoticonseditwidget.ui b/kopete/kopete/config/appearance/emoticonseditwidget.ui
index 0babcc4e..e5a23692 100644
--- a/kopete/kopete/config/appearance/emoticonseditwidget.ui
+++ b/kopete/kopete/config/appearance/emoticonseditwidget.ui
@@ -21,7 +21,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>tqlayout5</cstring>
+ <cstring>layout5</cstring>
</property>
<vbox>
<property name="name">
@@ -61,7 +61,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>40</height>
diff --git a/kopete/kopete/config/appearance/tooltipeditwidget.ui b/kopete/kopete/config/appearance/tooltipeditwidget.ui
index c08cfc2c..8a2021fd 100644
--- a/kopete/kopete/config/appearance/tooltipeditwidget.ui
+++ b/kopete/kopete/config/appearance/tooltipeditwidget.ui
@@ -45,7 +45,7 @@
<property name="text">
<string>Using the arrow buttons, put on the right the items you want to see in the contact tooltips. You can then sort them.</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -59,7 +59,7 @@
</widget>
<widget class="TQLayoutWidget" row="3" column="0">
<property name="name">
- <cstring>tqlayout5</cstring>
+ <cstring>layout5</cstring>
</property>
<hbox>
<property name="name">
@@ -89,7 +89,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<vbox>
<property name="name">
@@ -105,7 +105,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>60</height>
@@ -114,7 +114,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout1</cstring>
+ <cstring>layout1</cstring>
</property>
<grid>
<property name="name">
@@ -170,7 +170,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>30</height>
diff --git a/kopete/kopete/config/avdevice/avdeviceconfig.cpp b/kopete/kopete/config/avdevice/avdeviceconfig.cpp
index 4f8bafc0..cc82696e 100644
--- a/kopete/kopete/config/avdevice/avdeviceconfig.cpp
+++ b/kopete/kopete/config/avdevice/avdeviceconfig.cpp
@@ -20,7 +20,7 @@
#include "videodevice.h"
#include <tqcheckbox.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <tqhbuttongroup.h>
#include <tqspinbox.h>
diff --git a/kopete/kopete/config/avdevice/avdeviceconfig_videoconfig.ui b/kopete/kopete/config/avdevice/avdeviceconfig_videoconfig.ui
index 5e4a7b1f..d9fa4e4f 100644
--- a/kopete/kopete/config/avdevice/avdeviceconfig_videoconfig.ui
+++ b/kopete/kopete/config/avdevice/avdeviceconfig_videoconfig.ui
@@ -198,7 +198,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>tqlayout11</cstring>
+ <cstring>layout11</cstring>
</property>
<hbox>
<property name="name">
@@ -206,7 +206,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout9</cstring>
+ <cstring>layout9</cstring>
</property>
<vbox>
<property name="name">
@@ -296,7 +296,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout10</cstring>
+ <cstring>layout10</cstring>
</property>
<vbox>
<property name="name">
@@ -448,7 +448,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<vbox>
<property name="name">
@@ -536,7 +536,7 @@
</widget>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>tqlayout19</cstring>
+ <cstring>layout19</cstring>
</property>
<hbox>
<property name="name">
@@ -552,7 +552,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -571,7 +571,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>320</width>
<height>240</height>
@@ -594,7 +594,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
diff --git a/kopete/kopete/config/behavior/behaviorconfig.cpp b/kopete/kopete/config/behavior/behaviorconfig.cpp
index b133a64b..e7f053e8 100644
--- a/kopete/kopete/config/behavior/behaviorconfig.cpp
+++ b/kopete/kopete/config/behavior/behaviorconfig.cpp
@@ -20,7 +20,7 @@
#include <tqcheckbox.h>
#include <tqradiobutton.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <tqhbuttongroup.h>
#include <tqspinbox.h>
diff --git a/kopete/kopete/config/behavior/behaviorconfig_chat.ui b/kopete/kopete/config/behavior/behaviorconfig_chat.ui
index f5601731..a2a40598 100644
--- a/kopete/kopete/config/behavior/behaviorconfig_chat.ui
+++ b/kopete/kopete/config/behavior/behaviorconfig_chat.ui
@@ -56,7 +56,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -75,7 +75,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>240</height>
@@ -182,7 +182,7 @@
</widget>
<widget class="TQLayoutWidget" row="6" column="0">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -206,7 +206,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>120</width>
<height>20</height>
@@ -231,7 +231,7 @@
</widget>
<widget class="TQLayoutWidget" row="7" column="0">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -261,7 +261,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>212</width>
<height>20</height>
diff --git a/kopete/kopete/config/behavior/behaviorconfig_events.ui b/kopete/kopete/config/behavior/behaviorconfig_events.ui
index 3d1c8926..9a3fe302 100644
--- a/kopete/kopete/config/behavior/behaviorconfig_events.ui
+++ b/kopete/kopete/config/behavior/behaviorconfig_events.ui
@@ -46,7 +46,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout11_2</cstring>
+ <cstring>layout11_2</cstring>
</property>
<hbox>
<property name="name">
@@ -62,7 +62,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -104,7 +104,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout11</cstring>
+ <cstring>layout11</cstring>
</property>
<hbox>
<property name="name">
@@ -120,7 +120,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -148,7 +148,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</cstring>
</property>
<hbox>
<property name="name">
@@ -164,7 +164,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -221,7 +221,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>70</width>
<height>20</height>
@@ -339,7 +339,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/kopete/kopete/config/behavior/behaviorconfig_general.ui b/kopete/kopete/config/behavior/behaviorconfig_general.ui
index 13e7cc5d..d22eb069 100644
--- a/kopete/kopete/config/behavior/behaviorconfig_general.ui
+++ b/kopete/kopete/config/behavior/behaviorconfig_general.ui
@@ -172,7 +172,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/kopete/kopete/config/behavior/kopeteawayconfigbase.ui b/kopete/kopete/config/behavior/kopeteawayconfigbase.ui
index d2a1860a..c35aa4d5 100644
--- a/kopete/kopete/config/behavior/kopeteawayconfigbase.ui
+++ b/kopete/kopete/config/behavior/kopeteawayconfigbase.ui
@@ -77,7 +77,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>61</width>
<height>20</height>
@@ -111,7 +111,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -163,7 +163,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>81</width>
<height>20</height>
@@ -226,7 +226,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -242,7 +242,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -264,7 +264,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>300</width>
<height>0</height>
@@ -285,7 +285,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>30</height>
diff --git a/kopete/kopete/config/identity/globalidentitiesmanager.cpp b/kopete/kopete/config/identity/globalidentitiesmanager.cpp
index 41fbb3b6..7c1ebd56 100644
--- a/kopete/kopete/config/identity/globalidentitiesmanager.cpp
+++ b/kopete/kopete/config/identity/globalidentitiesmanager.cpp
@@ -19,7 +19,7 @@
// TQt includes
#include <tqdom.h>
#include <tqfile.h>
-#include <tqtextstream.h>
+#include <textstream.h>
// KDE includes
#include <kdebug.h>
diff --git a/kopete/kopete/config/identity/kopeteidentityconfig.cpp b/kopete/kopete/config/identity/kopeteidentityconfig.cpp
index 97bc2bcc..cfe61002 100644
--- a/kopete/kopete/config/identity/kopeteidentityconfig.cpp
+++ b/kopete/kopete/config/identity/kopeteidentityconfig.cpp
@@ -18,7 +18,7 @@
#include "kopeteidentityconfig.h"
// TQt includes
-#include <tqlayout.h>
+#include <layout.h>
#include <tqimage.h>
#include <tqlabel.h>
#include <tqlineedit.h>
@@ -564,12 +564,12 @@ void KopeteIdentityConfig::slotChangePhoto(const TQString &photoUrl)
KMD5 context(tempArray);
// Save the image to a file.
saveLocation = context.hexDigest() + ".png";
- saveLocation = locateLocal( "appdata", TQString::fromUtf8("globalidentitiespictures/%1").tqarg( saveLocation ) );
+ saveLocation = locateLocal( "appdata", TQString::fromUtf8("globalidentitiespictures/%1").arg( saveLocation ) );
if(!photo.save(saveLocation, "PNG"))
{
KMessageBox::sorry(this,
- i18n("An error occurred when trying to save the custom photo for %1 identity.").tqarg(d->selectedIdentity),
+ i18n("An error occurred when trying to save the custom photo for %1 identity.").arg(d->selectedIdentity),
i18n("Identity Configuration"));
}
d->m_view->comboPhotoURL->setURL(saveLocation);
@@ -578,7 +578,7 @@ void KopeteIdentityConfig::slotChangePhoto(const TQString &photoUrl)
else
{
KMessageBox::sorry(this,
- i18n("An error occurred when trying to save the custom photo for %1 identity.").tqarg(d->selectedIdentity),
+ i18n("An error occurred when trying to save the custom photo for %1 identity.").arg(d->selectedIdentity),
i18n("Identity Configuration"));
}
}
diff --git a/kopete/kopete/config/identity/kopeteidentityconfigbase.ui b/kopete/kopete/config/identity/kopeteidentityconfigbase.ui
index cebc838c..08272e07 100644
--- a/kopete/kopete/config/identity/kopeteidentityconfigbase.ui
+++ b/kopete/kopete/config/identity/kopeteidentityconfigbase.ui
@@ -27,7 +27,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout6</cstring>
+ <cstring>layout6</cstring>
</property>
<hbox>
<property name="name">
@@ -61,7 +61,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</cstring>
</property>
<hbox>
<property name="name">
@@ -138,7 +138,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>tqlayout12</cstring>
+ <cstring>layout12</cstring>
</property>
<vbox>
<property name="name">
@@ -203,7 +203,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -242,7 +242,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</cstring>
</property>
<grid>
<property name="name">
@@ -257,7 +257,7 @@
<property name="name">
<cstring>buttonClearPhoto</cstring>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32</width>
<height>3232</height>
@@ -316,7 +316,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout11</cstring>
+ <cstring>layout11</cstring>
</property>
<vbox>
<property name="name">
@@ -332,7 +332,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>36</height>
@@ -343,13 +343,13 @@
<property name="name">
<cstring>labelPhoto</cstring>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>64</width>
<height>92</height>
</size>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>64</width>
<height>32767</height>
@@ -381,7 +381,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -402,7 +402,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -424,7 +424,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</cstring>
</property>
<hbox>
<property name="name">
@@ -470,7 +470,7 @@ current user contact.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>100</height>
@@ -490,7 +490,7 @@ current user contact.</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/kopete/kopete/config/plugins/kopetepluginconfig.cpp b/kopete/kopete/config/plugins/kopetepluginconfig.cpp
index 7f790a0b..e3235d0c 100644
--- a/kopete/kopete/config/plugins/kopetepluginconfig.cpp
+++ b/kopete/kopete/config/plugins/kopetepluginconfig.cpp
@@ -17,7 +17,7 @@
#include "kopetepluginconfig.h"
-#include <tqlayout.h>
+#include <layout.h>
#include <tqtimer.h>
#include <kdebug.h>
diff --git a/kopete/kopete/contactlist/customnotificationprops.cpp b/kopete/kopete/contactlist/customnotificationprops.cpp
index 8c9deb30..f8e2bb85 100644
--- a/kopete/kopete/contactlist/customnotificationprops.cpp
+++ b/kopete/kopete/contactlist/customnotificationprops.cpp
@@ -47,12 +47,12 @@ CustomNotificationProps::CustomNotificationProps( TQWidget *parent, Kopete::Noti
TQStringList::Iterator end = m_eventList.end();
for ( ; it != end; ++it )
{
- if ( !(*it).startsWith( TQString::tqfromLatin1( "kopete_contact_" ) ) )
+ if ( !(*it).startsWith( TQString::fromLatin1( "kopete_contact_" ) ) )
continue;
contactSpecificEvents.append( *it );
TQMap<TQString, TQString> entries = eventsfile.entryMap( *it );
eventsfile.setGroup( *it );
- TQString comment = eventsfile.readEntry( "Comment", TQString::tqfromLatin1( "Found nothing!" ) );
+ TQString comment = eventsfile.readEntry( "Comment", TQString::fromLatin1( "Found nothing!" ) );
m_notifyWidget->cmbEvents->insertItem( comment );
}
m_eventList = contactSpecificEvents;
diff --git a/kopete/kopete/contactlist/customnotifications.ui b/kopete/kopete/contactlist/customnotifications.ui
index b3b578d8..45f15dad 100644
--- a/kopete/kopete/contactlist/customnotifications.ui
+++ b/kopete/kopete/contactlist/customnotifications.ui
@@ -18,7 +18,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout13</cstring>
+ <cstring>layout13</cstring>
</property>
<hbox>
<property name="name">
@@ -47,7 +47,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout12</cstring>
+ <cstring>layout12</cstring>
</property>
<grid>
<property name="name">
@@ -85,7 +85,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>140</width>
<height>20</height>
diff --git a/kopete/kopete/contactlist/kabcexport_base.ui b/kopete/kopete/contactlist/kabcexport_base.ui
index c9b8f883..fa147a52 100644
--- a/kopete/kopete/contactlist/kabcexport_base.ui
+++ b/kopete/kopete/contactlist/kabcexport_base.ui
@@ -41,7 +41,7 @@
<property name="text">
<string>This wizard helps you export instant messaging contacts to the KDE address book.</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -135,7 +135,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -167,7 +167,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>51</width>
<height>20</height>
diff --git a/kopete/kopete/contactlist/kopeteaddrbookexport.cpp b/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
index b3b6d630..11ec93d0 100644
--- a/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
+++ b/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
@@ -1,5 +1,5 @@
/*
- kopeteaddrbookexport.cpp - Kopete Online tqStatus
+ kopeteaddrbookexport.cpp - Kopete Online Status
Logic for exporting data acquired from messaging systems to the
KDE address book
diff --git a/kopete/kopete/contactlist/kopeteaddrbookexport.h b/kopete/kopete/contactlist/kopeteaddrbookexport.h
index 0190e8b7..62f1858d 100644
--- a/kopete/kopete/contactlist/kopeteaddrbookexport.h
+++ b/kopete/kopete/contactlist/kopeteaddrbookexport.h
@@ -1,5 +1,5 @@
/*
- kopeteaddrbookexport.h - Kopete Online tqStatus
+ kopeteaddrbookexport.h - Kopete Online Status
Logic for exporting data acquired from messaging systems to the
KDE address book
diff --git a/kopete/kopete/contactlist/kopetecontactlistview.cpp b/kopete/kopete/contactlist/kopetecontactlistview.cpp
index d3459c07..d86a4f67 100644
--- a/kopete/kopete/contactlist/kopetecontactlistview.cpp
+++ b/kopete/kopete/contactlist/kopetecontactlistview.cpp
@@ -28,7 +28,7 @@
#include <tqcursor.h>
#include <tqdragobject.h>
#include <tqheader.h>
-#include <tqstylesheet.h>
+#include <stylesheet.h>
#include <tqtimer.h>
#include <tqtooltip.h>
#include <tqguardedptr.h>
@@ -198,7 +198,7 @@ public:
{
removeMetaContactFromGroupInner( mc, gpi );
- // update the group's display of its number of tqchildren.
+ // update the group's display of its number of children.
// TODO: make the KopeteGroupViewItem not need this, by overriding insertItem and takeItem
gpi->refreshDisplayName();
@@ -288,8 +288,8 @@ private:
updateMetaContactInner( mc );
// FIXME: these items should do this for themselves...
- m_onlineItem->setText(0,i18n("Online contacts (%1)").tqarg(m_onlineItem->childCount()));
- m_offlineItem->setText(0,i18n("Offline contacts (%1)").tqarg(m_offlineItem->childCount()));
+ m_onlineItem->setText(0,i18n("Online contacts (%1)").arg(m_onlineItem->childCount()));
+ m_offlineItem->setText(0,i18n("Offline contacts (%1)").arg(m_offlineItem->childCount()));
}
void updateMetaContactInner( Kopete::MetaContact *mc )
{
@@ -475,14 +475,14 @@ void KopeteContactListView::initActions( KActionCollection *ac )
actionStartChat = KopeteStdAction::chat( TQT_TQOBJECT(this), TQT_SLOT( slotStartChat() ),
ac, "contactStartChat" );
- actionMove = new KopeteGroupListAction( i18n( "&Move To" ), TQString::tqfromLatin1( "editcut" ),
+ actionMove = new KopeteGroupListAction( i18n( "&Move To" ), TQString::fromLatin1( "editcut" ),
0, TQT_TQOBJECT(this), TQT_SLOT( slotMoveToGroup() ), ac, "contactMove" );
- actionCopy = new KopeteGroupListAction( i18n( "&Copy To" ), TQString::tqfromLatin1( "editcopy" ), 0,
+ actionCopy = new KopeteGroupListAction( i18n( "&Copy To" ), TQString::fromLatin1( "editcopy" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotCopyToGroup() ), ac, "contactCopy" );
actionRemove = KopeteStdAction::deleteContact( TQT_TQOBJECT(this), TQT_SLOT( slotRemove() ),
ac, "contactRemove" );
- actionSendEmail = new KAction( i18n( "Send Email..." ), TQString::tqfromLatin1( "mail_generic" ),
+ actionSendEmail = new KAction( i18n( "Send Email..." ), TQString::fromLatin1( "mail_generic" ),
0, TQT_TQOBJECT(this), TQT_SLOT( slotSendEmail() ), ac, "contactSendEmail" );
/* this actionRename is buggy, and useless with properties, removed in kopeteui.rc*/
actionRename = new KAction( i18n( "Rename" ), "filesaveas", 0,
@@ -491,7 +491,7 @@ void KopeteContactListView::initActions( KActionCollection *ac )
ac, "contactSendFile" );
actionAddContact = new KActionMenu( i18n( "&Add Contact" ),
- TQString::tqfromLatin1( "add_user" ), ac , "contactAddContact" );
+ TQString::fromLatin1( "add_user" ), ac , "contactAddContact" );
actionAddContact->popupMenu()->insertTitle( i18n("Select Account") );
actionAddTemporaryContact = new KAction( i18n( "Add to Your Contact List" ), "add_user", 0,
@@ -659,7 +659,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
int nb = Kopete::ContactList::self()->selectedMetaContacts().count() +
Kopete::ContactList::self()->selectedGroups().count();
- KMainWindow *window = dynamic_cast<KMainWindow *>(tqtopLevelWidget());
+ KMainWindow *window = dynamic_cast<KMainWindow *>(topLevelWidget());
if ( !window )
{
kdError( 14000 ) << k_funcinfo << "Main window not found, unable to display context-menu; "
@@ -671,7 +671,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
{
int px = mapFromGlobal( point ).x() - ( header()->sectionPos( header()->mapToIndex( 0 ) ) +
treeStepSize() * ( item->depth() + ( rootIsDecorated() ? 1 : 0 ) ) + itemMargin() );
- int py = mapFromGlobal( point ).y() - tqitemRect( item ).y() - (header()->isVisible() ? header()->height() : 0) ;
+ int py = mapFromGlobal( point ).y() - itemRect( item ).y() - (header()->isVisible() ? header()->height() : 0) ;
//kdDebug( 14000 ) << k_funcinfo << "x: " << px << ", y: " << py << endl;
Kopete::Contact *c = metaLVI->contactForPoint( TQPoint( px, py ) ) ;
@@ -691,7 +691,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
arg( metaLVI->metaContact()->displayName(), metaLVI->metaContact()->statusString() );
if ( title.length() > 43 )
- title = title.left( 40 ) + TQString::tqfromLatin1( "..." );
+ title = title.left( 40 ) + TQString::fromLatin1( "..." );
if ( popup->title( 0 ).isNull() )
popup->insertTitle ( title, 0, 0 );
@@ -716,9 +716,9 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
text=text.replace("&","&&"); // cf BUG 115449
if ( text.length() > 41 )
- text = text.left( 38 ) + TQString::tqfromLatin1( "..." );
+ text = text.left( 38 ) + TQString::fromLatin1( "..." );
- popup->insertItem( c->onlinetqStatus().iconFor( c, 16 ), text , contactMenu );
+ popup->insertItem( c->onlineStatus().iconFor( c, 16 ), text , contactMenu );
}
popup->popup( point );
@@ -733,7 +733,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
{
TQString title = groupvi->group()->displayName();
if ( title.length() > 32 )
- title = title.left( 30 ) + TQString::tqfromLatin1( "..." );
+ title = title.left( 30 ) + TQString::fromLatin1( "..." );
if( popup->title( 0 ).isNull() )
popup->insertTitle( title, 0, 0 );
@@ -814,7 +814,7 @@ void KopeteContactListView::slotExecuted( TQListViewItem *item, const TQPoint &p
{
// Try if we are clicking a protocol icon. If so, open a direct
// connection for that protocol
- TQRect r = tqitemRect( item );
+ TQRect r = itemRect( item );
TQPoint relativePos( pos.x() - r.left() - ( treeStepSize() *
( item->depth() + ( rootIsDecorated() ? 1 : 0 ) ) +
itemMargin() ), pos.y() - r.top() );
@@ -905,7 +905,7 @@ void KopeteContactListView::slotDropped(TQDropEvent *e, TQListViewItem *, TQList
}
else if( e->provides("kopete/x-contact") )
{
- TQString contactInfo = TQString::fromUtf8( e->tqencodedData("kopete/x-contact") );
+ TQString contactInfo = TQString::fromUtf8( e->encodedData("kopete/x-contact") );
TQString protocolId = contactInfo.section( TQChar( 0xE000 ), 0, 0 );
TQString accountId = contactInfo.section( TQChar( 0xE000 ), 1, 1 );
TQString contactId = contactInfo.section( TQChar( 0xE000 ), 2 );
@@ -927,7 +927,7 @@ void KopeteContactListView::slotDropped(TQDropEvent *e, TQListViewItem *, TQList
for ( KURL::List::Iterator it = urlList.begin(); it != urlList.end(); ++it )
{
KURL url = (*it);
- if( url.protocol() == TQString::tqfromLatin1("kopetemessage") )
+ if( url.protocol() == TQString::fromLatin1("kopetemessage") )
{
//Add a contact
addDraggedContactByInfo( url.queryItem("protocolId"),
@@ -938,7 +938,7 @@ void KopeteContactListView::slotDropped(TQDropEvent *e, TQListViewItem *, TQList
TQPoint p = contentsToViewport(e->pos());
int px = p.x() - ( header()->sectionPos( header()->mapToIndex( 0 ) ) +
treeStepSize() * ( dest_metaLVI->depth() + ( rootIsDecorated() ? 1 : 0 ) ) + itemMargin() );
- int py = p.y() - tqitemRect( dest_metaLVI ).y();
+ int py = p.y() - itemRect( dest_metaLVI ).y();
Kopete::Contact *c = dest_metaLVI->contactForPoint( TQPoint( px, py ) );
@@ -987,7 +987,7 @@ void KopeteContactListView::addDraggedContactToGroup( Kopete::MetaContact *conta
{
int r=KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(),
i18n( "<qt>Would you like to add <b>%1</b> to your contact list as a member of <b>%2</b>?</qt>" )
- .tqarg( contact->displayName(), group->displayName() ),
+ .arg( contact->displayName(), group->displayName() ),
i18n( "Kopete" ), i18n("Add"), i18n("Do Not Add"),
"addTemporaryWhenMoving" );
@@ -1003,7 +1003,7 @@ void KopeteContactListView::addDraggedContactToMetaContact( Kopete::Contact *con
{
int r = KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(),
i18n( "<qt>Would you like to add <b>%1</b> to your contact list as a child contact of <b>%2</b>?</qt>" )
- .tqarg( contact->contactId(), parent->displayName() ),
+ .arg( contact->contactId(), parent->displayName() ),
i18n( "Kopete" ), i18n("Add"), i18n("Do Not Add"),
"addTemporaryWhenMoving" );
@@ -1054,7 +1054,7 @@ void KopeteContactListView::addDraggedContactByInfo( const TQString &protocolId,
{
KMessageBox::sorry( Kopete::UI::Global::mainWidget(),
i18n("<qt>This contact is already on your contact list. It is a child contact of <b>%1</b></qt>")
- .tqarg( source_contact->metaContact()->displayName() )
+ .arg( source_contact->metaContact()->displayName() )
);
}
}
@@ -1146,7 +1146,7 @@ bool KopeteContactListView::acceptDrag(TQDropEvent *e) const
TQPoint p=contentsToViewport(e->pos());
int px = p.x() - ( header()->sectionPos( header()->mapToIndex( 0 ) ) +
treeStepSize() * ( dest_metaLVI->depth() + ( rootIsDecorated() ? 1 : 0 ) ) + itemMargin() );
- int py = p.y() - tqitemRect( dest_metaLVI ).y();
+ int py = p.y() - itemRect( dest_metaLVI ).y();
Kopete::Contact *c = dest_metaLVI->contactForPoint( TQPoint( px, py ) ) ;
if( c ? !c->isReachable() : !dest_metaLVI->metaContact()->isReachable() )
@@ -1168,7 +1168,7 @@ bool KopeteContactListView::acceptDrag(TQDropEvent *e) const
for ( KURL::List::Iterator it = urlList.begin(); it != urlList.end(); ++it )
{
- if( (*it).protocol() != TQString::tqfromLatin1("kopetemessage") && (*it).isLocalFile() )
+ if( (*it).protocol() != TQString::fromLatin1("kopetemessage") && (*it).isLocalFile() )
return false; //we can't send links if a locale file is in link
}
@@ -1216,7 +1216,7 @@ void KopeteContactListView::contentsMousePressEvent( TQMouseEvent *e )
int px = p.x() - ( header()->sectionPos( header()->mapToIndex( 0 ) ) +
treeStepSize() * ( i->depth() + ( rootIsDecorated() ? 1 : 0 ) ) + itemMargin() );
- int py = p.y() - tqitemRect( i ).y();
+ int py = p.y() - itemRect( i ).y();
m_startDragPos = TQPoint( px , py );
}
@@ -1272,7 +1272,7 @@ TQDragObject *KopeteContactListView::dragObject()
d->setEncodedData( TQString( c->protocol()->pluginId() +TQChar( 0xE000 )+ c->account()->accountId() +TQChar( 0xE000 )+ c->contactId() ).utf8() );
drag->addDragObject( d );
- pm = c->onlinetqStatus().iconFor( c, 12 ); // FIXME: fixed icon scaling
+ pm = c->onlineStatus().iconFor( c, 12 ); // FIXME: fixed icon scaling
}
else // dragging a metacontact
{
@@ -1555,13 +1555,13 @@ void KopeteContactListView::slotRemove()
{
msg = i18n( "<qt>Are you sure you want to remove the contact <b>%1</b>" \
" from your contact list?</qt>" )
- .tqarg( contacts.first()->displayName() ) ;
+ .arg( contacts.first()->displayName() ) ;
}
else if( !groups.isEmpty() )
{
msg = i18n( "<qt>Are you sure you want to remove the group <b>%1</b> " \
"and all contacts that are contained within it?</qt>" )
- .tqarg( groups.first()->displayName() );
+ .arg( groups.first()->displayName() );
}
else
return; // this should never happen
@@ -1772,7 +1772,7 @@ void KopeteContactListView::slotProperties()
{
}
*/
- metaLVI->tqrepaint();
+ metaLVI->repaint();
}
else if(groupLVI)
{
diff --git a/kopete/kopete/contactlist/kopetegroupviewitem.cpp b/kopete/kopete/contactlist/kopetegroupviewitem.cpp
index d952e728..b28b7cb3 100644
--- a/kopete/kopete/contactlist/kopetegroupviewitem.cpp
+++ b/kopete/kopete/contactlist/kopetegroupviewitem.cpp
@@ -1,5 +1,5 @@
/*
- kopeteonlinestatus.cpp - Kopete Online tqStatus
+ kopeteonlinestatus.cpp - Kopete Online Status
Copyright (c) 2002-2004 by Olivier Goffart <ogoffart @ kde.org>
Copyright (c) 2003 by Martijn Klingens <klingens@kde.org>
@@ -167,7 +167,7 @@ void KopeteGroupViewItem::refreshDisplayName()
d->name->setText( m_group->displayName() );
d->count->setText( i18n( "(NUMBER OF ONLINE CONTACTS/NUMBER OF CONTACTS IN GROUP)", "(%1/%2)" )
- .tqarg( TQString::number( onlineMemberCount ), TQString::number( totalMemberCount ) ) );
+ .arg( TQString::number( onlineMemberCount ), TQString::number( totalMemberCount ) ) );
updateVisibility();
diff --git a/kopete/kopete/contactlist/kopetegvipropswidget.ui b/kopete/kopete/contactlist/kopetegvipropswidget.ui
index f336b240..6e13abba 100644
--- a/kopete/kopete/contactlist/kopetegvipropswidget.ui
+++ b/kopete/kopete/contactlist/kopetegvipropswidget.ui
@@ -36,7 +36,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</cstring>
</property>
<hbox>
<property name="name">
@@ -127,7 +127,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
diff --git a/kopete/kopete/contactlist/kopetelviprops.cpp b/kopete/kopete/contactlist/kopetelviprops.cpp
index b1047dff..f9c7cbbc 100644
--- a/kopete/kopete/contactlist/kopetelviprops.cpp
+++ b/kopete/kopete/contactlist/kopetelviprops.cpp
@@ -26,7 +26,7 @@
#include <tqapplication.h>
#include <tqcheckbox.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpushbutton.h>
#include <tqradiobutton.h>
#include <tqtabwidget.h>
@@ -66,7 +66,7 @@ const char MC_UNK[] = "metacontact_unknown";
KopeteGVIProps::KopeteGVIProps(KopeteGroupViewItem *gvi, TQWidget *parent, const char *name)
-: KDialogBase(parent, name, true, i18n("Properties of Group %1").tqarg(gvi->group()->displayName()), Ok|Cancel, Ok, false)
+: KDialogBase(parent, name, true, i18n("Properties of Group %1").arg(gvi->group()->displayName()), Ok|Cancel, Ok, false)
{
mainWidget = new KopeteGVIPropsWidget(this, "mainWidget");
mainWidget->icnbOpen->setIconSize(KIcon::SizeSmall);
@@ -146,7 +146,7 @@ void KopeteGVIProps::slotIconChanged()
KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, TQWidget *parent, const char *name)
-: KDialogBase(parent, name, true, i18n("Properties of Meta Contact %1").tqarg(lvi->metaContact()->displayName()), Ok|Cancel, Ok, false)
+: KDialogBase(parent, name, true, i18n("Properties of Meta Contact %1").arg(lvi->metaContact()->displayName()), Ok|Cancel, Ok, false)
{
m_countPhotoCapable = 0;
mainWidget = new KopeteMetaLVIPropsWidget( this, "mainWidget" );
@@ -157,10 +157,10 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, TQWidget *pare
mNotificationProps = new CustomNotificationProps( this, lvi->metaContact() );
// add a button to the notification props to get the sound from KABC
- // the widget's vert box tqlayout, horiz box tqlayout containing button, spacer, followed by a spacer
- TQBoxLayout * vb = static_cast<TQVBoxLayout*>( mNotificationProps->widget()->tqlayout() );
+ // the widget's vert box layout, horiz box layout containing button, spacer, followed by a spacer
+ TQBoxLayout * vb = static_cast<TQVBoxLayout*>( mNotificationProps->widget()->layout() );
- TQHBoxLayout* hb = new TQHBoxLayout( vb, -1, "soundFromKABCtqlayout" );
+ TQHBoxLayout* hb = new TQHBoxLayout( vb, -1, "soundFromKABClayout" );
mFromKABC = new TQPushButton( i18n( "Sync KABC..." ), mNotificationProps->widget(), "getSoundFromKABC" );
hb->addWidget( mFromKABC ); // [ [Button] <-xxxxx-> ]
hb->addStretch();
@@ -187,19 +187,19 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(KopeteMetaContactLVI *lvi, TQWidget *pare
TQString offlineName = item->metaContact()->icon( Kopete::ContactListElement::Offline );
if(offlineName.isEmpty())
- offlineName = TQString::tqfromLatin1(MC_OFF); // Default
+ offlineName = TQString::fromLatin1(MC_OFF); // Default
TQString onlineName = item->metaContact()->icon( Kopete::ContactListElement::Online );
if(onlineName.isEmpty())
- onlineName = TQString::tqfromLatin1(MC_ON); // Default
+ onlineName = TQString::fromLatin1(MC_ON); // Default
TQString awayName = item->metaContact()->icon( Kopete::ContactListElement::Away );
if(awayName.isEmpty())
- awayName = TQString::tqfromLatin1(MC_AW); // Default
+ awayName = TQString::fromLatin1(MC_AW); // Default
TQString unknownName = item->metaContact()->icon( Kopete::ContactListElement::Unknown );
if(unknownName.isEmpty())
- unknownName = TQString::tqfromLatin1(MC_UNK); // Default
+ unknownName = TQString::fromLatin1(MC_UNK); // Default
mainWidget->icnbOffline->setIcon( offlineName );
mainWidget->icnbOnline->setIcon( onlineName );
diff --git a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
index 2afe4fe9..4bc67acd 100644
--- a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
+++ b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
@@ -22,7 +22,7 @@
#include <tqtimer.h>
#include <tqvariant.h>
#include <tqmime.h>
-#include <tqstylesheet.h>
+#include <stylesheet.h>
#include "knotification.h"
#include <kdebug.h>
@@ -82,18 +82,18 @@ public:
{
// We begin with the meta contact display name at the top of the tooltip
- TQString toolTip = TQString::tqfromLatin1("<qt><table cellpadding=\"0\" cellspacing=\"1\">");
+ TQString toolTip = TQString::fromLatin1("<qt><table cellpadding=\"0\" cellspacing=\"1\">");
- toolTip += TQString::tqfromLatin1("<tr><td>");
+ toolTip += TQString::fromLatin1("<tr><td>");
if ( ! metaContact->photo().isNull() )
{
- TQString photoName = TQString::tqfromLatin1("kopete-metacontact-photo:%1").tqarg( KURL::encode_string( metaContact->metaContactId() ));
+ TQString photoName = TQString::fromLatin1("kopete-metacontact-photo:%1").arg( KURL::encode_string( metaContact->metaContactId() ));
//TQMimeSourceFactory::defaultFactory()->setImage( "contactimg", metaContact->photo() );
- toolTip += TQString::tqfromLatin1("<img src=\"%1\">").tqarg( photoName );
+ toolTip += TQString::fromLatin1("<img src=\"%1\">").arg( photoName );
}
- toolTip += TQString::tqfromLatin1("</td><td>");
+ toolTip += TQString::fromLatin1("</td><td>");
TQString displayName;
Kopete::Emoticons *e = Kopete::Emoticons::self();
@@ -110,32 +110,32 @@ public:
}
}
- toolTip += TQString::tqfromLatin1("<b><font size=\"+1\">%1</font></b><br><br>").tqarg( displayName );
+ toolTip += TQString::fromLatin1("<b><font size=\"+1\">%1</font></b><br><br>").arg( displayName );
TQPtrList<Contact> contacts = metaContact->contacts();
if ( contacts.count() == 1 )
{
- return toolTip + contacts.first()->toolTip() + TQString::tqfromLatin1("</td></tr></table></qt>");
+ return toolTip + contacts.first()->toolTip() + TQString::fromLatin1("</td></tr></table></qt>");
}
- toolTip += TQString::tqfromLatin1("<table>");
+ toolTip += TQString::fromLatin1("<table>");
// We are over a metacontact with > 1 child contacts, and not over a specific contact
- // Iterate through tqchildren and display a summary tooltip
+ // Iterate through children and display a summary tooltip
for(Contact *c = contacts.first(); c; c = contacts.next())
{
- TQString iconName = TQString::tqfromLatin1("kopete-contact-icon:%1:%2:%3")
- .tqarg( KURL::encode_string( c->protocol()->pluginId() ),
+ TQString iconName = TQString::fromLatin1("kopete-contact-icon:%1:%2:%3")
+ .arg( KURL::encode_string( c->protocol()->pluginId() ),
KURL::encode_string( c->account()->accountId() ),
KURL::encode_string( c->contactId() )
);
toolTip += i18n("<tr><td>STATUS ICON <b>PROTOCOL NAME</b> (ACCOUNT NAME)</td><td>STATUS DESCRIPTION</td></tr>",
"<tr><td><img src=\"%1\">&nbsp;<nobr><b>%2</b></nobr>&nbsp;<nobr>(%3)</nobr></td><td align=\"right\"><nobr>%4</nobr></td></tr>")
- .tqarg( iconName, Kopete::Emoticons::parseEmoticons(c->property(Kopete::Global::Properties::self()->nickName()).value().toString()) , c->contactId(), c->onlinetqStatus().description() );
+ .arg( iconName, Kopete::Emoticons::parseEmoticons(c->property(Kopete::Global::Properties::self()->nickName()).value().toString()) , c->contactId(), c->onlineStatus().description() );
}
- return toolTip + TQString::tqfromLatin1("</table></td></tr></table></qt>");
+ return toolTip + TQString::fromLatin1("</table></td></tr></table></qt>");
}
private:
MetaContact *metaContact;
@@ -212,7 +212,7 @@ void KopeteMetaContactLVI::initLVI()
d->toolTipSource.reset( new ListView::MetaContactToolTipSource( m_metaContact ) );
- m_oldtqStatus = m_metaContact->status();
+ m_oldStatus = m_metaContact->status();
connect( m_metaContact, TQT_SIGNAL( displayNameChanged( const TQString &, const TQString & ) ),
TQT_SLOT( slotDisplayNameChanged() ) );
@@ -254,7 +254,7 @@ void KopeteMetaContactLVI::initLVI()
mIsBlinkIcon = false;
//if ( !mBlinkIcon )
- // mBlinkIcon = new TQPixmap( KGlobal::iconLoader()->loadIcon( TQString::tqfromLatin1( "newmsg" ), KIcon::Small ) );
+ // mBlinkIcon = new TQPixmap( KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "newmsg" ), KIcon::Small ) );
slotConfigChanged(); // this calls slotIdleStateChanged(), which sets up the constituent components, spacing, fonts and indirectly, the contact icon
slotDisplayNameChanged();
@@ -363,18 +363,18 @@ void KopeteMetaContactLVI::slotContactStatusChanged( Kopete::Contact *c )
// multiple times if the user is in multiple groups - Jason
// comparing the status of the previous and new preferred contact is the determining factor in deciding to notify
- Kopete::OnlineStatus newtqStatus;
+ Kopete::OnlineStatus newStatus;
if ( m_metaContact->preferredContact() )
- newtqStatus = m_metaContact->preferredContact()->onlinetqStatus();
+ newStatus = m_metaContact->preferredContact()->onlineStatus();
else
{
// the last child contact has gone offline or otherwise unreachable, so take the changed contact's online status
- newtqStatus = c->onlinetqStatus();
+ newStatus = c->onlineStatus();
}
// ensure we are not suppressing notifications, because connecting or disconnected
if ( !(c->account()->suppressStatusNotification()
- || ( c->account()->myself()->onlinetqStatus().status() == Kopete::OnlineStatus::Connecting )
+ || ( c->account()->myself()->onlineStatus().status() == Kopete::OnlineStatus::Connecting )
|| !c->account()->isConnected() ) )
{
if ( !c->account()->isAway() || KopetePrefs::prefs()->soundIfAway() )
@@ -382,47 +382,47 @@ void KopeteMetaContactLVI::slotContactStatusChanged( Kopete::Contact *c )
//int winId = KopeteSystemTray::systemTray() ? KopeteSystemTray::systemTray()->winId() : 0;
TQString text = i18n( "<qt><i>%1</i> is now %2.</qt>" )
- .tqarg( Kopete::Emoticons::parseEmoticons( TQStyleSheet::escape(m_metaContact->displayName()) ) ,
- TQStyleSheet::escape(c->onlinetqStatus().description()));
+ .arg( Kopete::Emoticons::parseEmoticons( TQStyleSheet::escape(m_metaContact->displayName()) ) ,
+ TQStyleSheet::escape(c->onlineStatus().description()));
// figure out what's happened
- enum ChangeType { noChange, noEvent, signedIn, changedtqStatus, signedOut };
+ enum ChangeType { noChange, noEvent, signedIn, changedStatus, signedOut };
ChangeType t = noChange;
//kdDebug( 14000 ) << k_funcinfo << m_metaContact->displayName() <<
- //" - Old MC Status: " << m_oldtqStatus.status() << ", New MC Status: " << newtqStatus.status() << endl;
+ //" - Old MC Status: " << m_oldStatus.status() << ", New MC Status: " << newStatus.status() << endl;
// first, exclude changes due to blocking or subscription changes at the protocol level
- if ( ( m_oldtqStatus.status() == Kopete::OnlineStatus::Unknown
- || newtqStatus.status() == Kopete::OnlineStatus::Unknown ) )
+ if ( ( m_oldStatus.status() == Kopete::OnlineStatus::Unknown
+ || newStatus.status() == Kopete::OnlineStatus::Unknown ) )
t = noEvent; // This means the contact's changed from or to unknown - due to a protocol state change, not a contact state change
else // we're dealing with a genuine contact state change
{
- if ( m_oldtqStatus.status() == Kopete::OnlineStatus::Offline )
+ if ( m_oldStatus.status() == Kopete::OnlineStatus::Offline )
{
- if ( newtqStatus.status() != Kopete::OnlineStatus::Offline )
+ if ( newStatus.status() != Kopete::OnlineStatus::Offline )
{
//kdDebug( 14000 ) << "signed in" << endl;
t = signedIn; // contact has gone from offline to something else, it's a sign-in
}
}
- else if ( m_oldtqStatus.status() == Kopete::OnlineStatus::Online
- || m_oldtqStatus.status() == Kopete::OnlineStatus::Away
- || m_oldtqStatus.status() == Kopete::OnlineStatus::Invisible)
+ else if ( m_oldStatus.status() == Kopete::OnlineStatus::Online
+ || m_oldStatus.status() == Kopete::OnlineStatus::Away
+ || m_oldStatus.status() == Kopete::OnlineStatus::Invisible)
{
- if ( newtqStatus.status() == Kopete::OnlineStatus::Offline )
+ if ( newStatus.status() == Kopete::OnlineStatus::Offline )
{
//kdDebug( 14000 ) << "signed OUT" << endl;
t = signedOut; // contact has gone from an online state to an offline state, it's a sign out
}
- else if ( m_oldtqStatus > newtqStatus || m_oldtqStatus < newtqStatus ) // operator!= is useless because it's an identity operator, not an equivalence operator
+ else if ( m_oldStatus > newStatus || m_oldStatus < newStatus ) // operator!= is useless because it's an identity operator, not an equivalence operator
{
// contact has changed online states, it's a status change,
// and the preferredContact changed status, or there is a new preferredContacat
// so it's worth notifying
//kdDebug( 14000 ) << "changed status" << endl;
- t = changedtqStatus;
+ t = changedStatus;
}
}
- else if ( m_oldtqStatus != newtqStatus )
+ else if ( m_oldStatus != newStatus )
{
//kdDebug( 14000 ) << "non-event" << endl;
// catch-all for any other status change we don't know about
@@ -441,7 +441,7 @@ void KopeteMetaContactLVI::slotContactStatusChanged( Kopete::Contact *c )
connect(KNotification::event(m_metaContact, "kopete_contact_online", text, m_metaContact->photo(), KopeteSystemTray::systemTray(), i18n( "Chat" )) ,
TQT_SIGNAL(activated(unsigned int )) , this, TQT_SLOT( execute() ) );
break;
- case changedtqStatus:
+ case changedStatus:
connect(KNotification::event(m_metaContact, "kopete_contact_status_change", text, m_metaContact->photo(), KopeteSystemTray::systemTray(), i18n( "Chat" )) ,
TQT_SIGNAL(activated(unsigned int )) , this, TQT_SLOT( execute() ));
break;
@@ -468,7 +468,7 @@ void KopeteMetaContactLVI::slotContactStatusChanged( Kopete::Contact *c )
}
// make a note of the current status for the next time we get a status change
- m_oldtqStatus = newtqStatus;
+ m_oldStatus = newStatus;
if ( m_parentGroup )
m_parentGroup->refreshDisplayName();
@@ -802,9 +802,9 @@ void KopeteMetaContactLVI::updateVisibility()
void KopeteMetaContactLVI::slotContactPropertyChanged( Kopete::Contact *contact,
const TQString &key, const TQVariant &old, const TQVariant &newVal )
{
-// if ( key == TQString::tqfromLatin1("awayMessage") )
+// if ( key == TQString::fromLatin1("awayMessage") )
// kdDebug( 14000 ) << k_funcinfo << "contact=" << contact->contactId() << ", isonline=" << contact->isOnline() << ", alloffline=" << !m_metaContact->isOnline() << ", oldvalue=" << old.toString() << ", newvalue=" << newVal.toString() << endl;
- if ( key == TQString::tqfromLatin1("awayMessage") && d->extraText && old != newVal )
+ if ( key == TQString::fromLatin1("awayMessage") && d->extraText && old != newVal )
{
bool allOffline = !m_metaContact->isOnline();
if ( newVal.toString().isEmpty() || ( !contact->isOnline() && !allOffline ) )
@@ -839,7 +839,7 @@ void KopeteMetaContactLVI::slotContactPropertyChanged( Kopete::Contact *contact,
d->extraText->setText( newVal.toString() );
}
} // wtf? KopeteMetaContact also connects this signals and emits photoChanged! why no connect photoChanged to slotPhotoChanged?
- /*else if ( key == TQString::tqfromLatin1("photo") && (m_metaContact->photoSourceContact() == contact) && (m_metaContact->photoSource() == Kopete::MetaContact::SourceContact))
+ /*else if ( key == TQString::fromLatin1("photo") && (m_metaContact->photoSourceContact() == contact) && (m_metaContact->photoSource() == Kopete::MetaContact::SourceContact))
{
slotPhotoChanged();
}*/
@@ -855,8 +855,8 @@ void KopeteMetaContactLVI::slotContactAdded( Kopete::Contact *c )
updateContactIcon( c );
- slotContactPropertyChanged( c, TQString::tqfromLatin1("awayMessage"),
- TQVariant(), c->property( TQString::tqfromLatin1("awayMessage") ).value() );
+ slotContactPropertyChanged( c, TQString::fromLatin1("awayMessage"),
+ TQVariant(), c->property( TQString::fromLatin1("awayMessage") ).value() );
}
void KopeteMetaContactLVI::slotContactRemoved( Kopete::Contact *c )
@@ -870,8 +870,8 @@ void KopeteMetaContactLVI::slotContactRemoved( Kopete::Contact *c )
if ( ListView::Component *comp = contactComponent( c ) )
delete comp;
- slotContactPropertyChanged( c, TQString::tqfromLatin1("awayMessage"),
- c->property( TQString::tqfromLatin1("awayMessage") ).value(), TQVariant() );
+ slotContactPropertyChanged( c, TQString::fromLatin1("awayMessage"),
+ c->property( TQString::fromLatin1("awayMessage") ).value(), TQVariant() );
}
void KopeteMetaContactLVI::updateContactIcons()
@@ -884,9 +884,9 @@ void KopeteMetaContactLVI::updateContactIcons()
void KopeteMetaContactLVI::updateContactIcon( Kopete::Contact *c )
{
- KGlobal::config()->setGroup( TQString::tqfromLatin1("ContactList") );
+ KGlobal::config()->setGroup( TQString::fromLatin1("ContactList") );
bool bHideOffline = KGlobal::config()->readBoolEntry(
- TQString::tqfromLatin1("HideOfflineContacts"), false );
+ TQString::fromLatin1("HideOfflineContacts"), false );
if ( KopetePrefs::prefs()->showOffline() )
bHideOffline = false;
diff --git a/kopete/kopete/contactlist/kopetemetacontactlvi.h b/kopete/kopete/contactlist/kopetemetacontactlvi.h
index 9dcdcc4f..fc755158 100644
--- a/kopete/kopete/contactlist/kopetemetacontactlvi.h
+++ b/kopete/kopete/contactlist/kopetemetacontactlvi.h
@@ -171,7 +171,7 @@ private:
int m_pixelWide;
- Kopete::OnlineStatus m_oldtqStatus;
+ Kopete::OnlineStatus m_oldStatus;
TQPixmap m_oldStatusIcon;
TQPixmap m_originalBlinkIcon;
diff --git a/kopete/kopete/contactlist/kopetemetalvipropswidget.ui b/kopete/kopete/contactlist/kopetemetalvipropswidget.ui
index da5b2d99..718a3ae9 100644
--- a/kopete/kopete/contactlist/kopetemetalvipropswidget.ui
+++ b/kopete/kopete/contactlist/kopetemetalvipropswidget.ui
@@ -60,7 +60,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<hbox>
<property name="name">
@@ -90,7 +90,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>107</width>
<height>20</height>
@@ -136,7 +136,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout11</cstring>
+ <cstring>layout11</cstring>
</property>
<hbox>
<property name="name">
@@ -160,7 +160,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -187,7 +187,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout12</cstring>
+ <cstring>layout12</cstring>
</property>
<hbox>
<property name="name">
@@ -211,7 +211,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -242,13 +242,13 @@
<property name="name">
<cstring>photoLabel</cstring>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>64</width>
<height>92</height>
</size>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>64</width>
<height>32767</height>
@@ -277,7 +277,7 @@
</widget>
<widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
- <cstring>tqlayout13</cstring>
+ <cstring>layout13</cstring>
</property>
<hbox>
<property name="name">
@@ -301,7 +301,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -328,7 +328,7 @@
</widget>
<widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</cstring>
</property>
<hbox>
<property name="name">
@@ -352,7 +352,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -376,7 +376,7 @@
<property name="name">
<cstring>btnClearPhoto</cstring>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>32</width>
<height>32</height>
@@ -519,7 +519,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>16</height>
@@ -538,7 +538,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>170</height>
diff --git a/kopete/kopete/eventsrc b/kopete/kopete/eventsrc
index 3d05847b..9d3cf2f7 100644
--- a/kopete/kopete/eventsrc
+++ b/kopete/kopete/eventsrc
@@ -503,7 +503,7 @@ default_presentation=0
[kopete_contact_status_change]
-Name=tqStatus Change
+Name=Status Change
Name[ar]=تغير حالة
Name[be]=Змена стану
Name[bg]=Променено състояние на приятел
@@ -512,10 +512,10 @@ Name[bs]=Izmjena statusa
Name[ca]=Canvia estatus
Name[cs]=Změna stavu
Name[cy]=Newid Cyflwr
-Name[da]=tqStatusændring
+Name[da]=Statusændring
Name[de]=Statuswechsel
Name[el]=Αλλαγή κατάστασης
-Name[eo]=tqStatus-ŝanĝo
+Name[eo]=Status-ŝanĝo
Name[es]=Cambiar estado
Name[et]=Staatuse muutus
Name[eu]=Egoera aldaketa
@@ -537,14 +537,14 @@ Name[km]=ការផ្លាស់ប្ដូរ​ស្ថានភាព
Name[lt]=Būsenos pakitimas
Name[mk]=Промена на статусот
Name[nb]=Endre status
-Name[nds]=tqStatusännern
+Name[nds]=Statusännern
Name[ne]=वस्तुस्थिति परिवर्तन
Name[nl]=Statusverandering
Name[nn]=Statusendring
Name[pa]=ਹਾਲਤ ਬਦਲੀ
Name[pl]=Zmiana statusu
Name[pt]=Mudança de Estado
-Name[pt_BR]=Mudança de tqStatus
+Name[pt_BR]=Mudança de Status
Name[ro]=Modificare stare
Name[ru]=Изменение статуса
Name[se]=Stáhtusrievdadus
@@ -552,7 +552,7 @@ Name[sk]=Zmena stavu
Name[sl]=Sprememba stanja
Name[sr]=Промена статуса
Name[sr@Latn]=Promena statusa
-Name[sv]=tqStatusändring
+Name[sv]=Statusändring
Name[ta]=நிலை மாற்றம்
Name[tg]=Ивази Ҳолат
Name[tr]=Durum Değişimi
@@ -571,7 +571,7 @@ Comment[bs]=Kontakt je promijenio svoj online status
Comment[ca]=L'estat d'un contacte ha canviat
Comment[cs]=Osoba změnila online stav
Comment[da]=En kontakts status på nettet er ændret
-Comment[de]=Ein Benutzer wechselt seinen tqStatus.
+Comment[de]=Ein Benutzer wechselt seinen Status.
Comment[el]=Μια επαφή άλλαξε αυτή τη στιγμή κατάσταση
Comment[es]=El estado de conexión de un contacto ha cambiado
Comment[et]=Kontakt muutis oma võrgusoleku staatust
@@ -591,7 +591,7 @@ Comment[km]=បាន​ផ្លាស់ប្ដូរ​ស្ថានភ
Comment[lt]=Kontaktinio asmens būsena pakito
Comment[mk]=Статусот на контактот на линија се измени
Comment[nb]=En bruker endret tilkobling til nettet
-Comment[nds]=De Tokoppel-tqStatus vun en Kontakt hett sik ännert
+Comment[nds]=De Tokoppel-Status vun en Kontakt hett sik ännert
Comment[ne]=सम्पर्कको अनलाइन वस्तुस्थिति परिवर्तन भयो
Comment[nl]=Gebruiker wijzigde online status
Comment[nn]=Kontakt endrar status
diff --git a/kopete/kopete/groupkabcselectorwidget.ui b/kopete/kopete/groupkabcselectorwidget.ui
index 46d6c5e3..d4d6d5cf 100644
--- a/kopete/kopete/groupkabcselectorwidget.ui
+++ b/kopete/kopete/groupkabcselectorwidget.ui
@@ -35,7 +35,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout13</cstring>
+ <cstring>layout13</cstring>
</property>
<grid>
<property name="name">
diff --git a/kopete/kopete/kconf_update/kopete-account-kconf_update.cpp b/kopete/kopete/kconf_update/kopete-account-kconf_update.cpp
index 961dec84..f47a76a1 100644
--- a/kopete/kopete/kconf_update/kopete-account-kconf_update.cpp
+++ b/kopete/kopete/kconf_update/kopete-account-kconf_update.cpp
@@ -18,7 +18,7 @@
*/
#include <tqmap.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqregexp.h>
static TQTextStream qcin ( stdin, IO_ReadOnly );
@@ -46,8 +46,8 @@ TQString cryptStr(const TQString &aStr)
{
TQString result;
for (unsigned int i = 0; i < aStr.length(); i++)
- result += (aStr[i].tqunicode() < 0x20) ? aStr[i] :
- TQChar(0x1001F - aStr[i].tqunicode());
+ result += (aStr[i].unicode() < 0x20) ? aStr[i] :
+ TQChar(0x1001F - aStr[i].unicode());
return result;
}
@@ -153,7 +153,7 @@ void parseKey( const TQString &group, const TQString &key, const TQString &value
!ircNick.isEmpty( ) && !ircServer.isEmpty() &&
!ircPort.isEmpty() )
{
- accountId = TQString::tqfromLatin1( "%1@%2:%3" ).tqarg( ircNick, ircServer, ircPort );
+ accountId = TQString::fromLatin1( "%1@%2:%3" ).arg( ircNick, ircServer, ircPort );
}
}
/*
diff --git a/kopete/kopete/kconf_update/kopete-nameTracking.cpp b/kopete/kopete/kconf_update/kopete-nameTracking.cpp
index f1a4e37d..ff969fc2 100644
--- a/kopete/kopete/kconf_update/kopete-nameTracking.cpp
+++ b/kopete/kopete/kconf_update/kopete-nameTracking.cpp
@@ -15,7 +15,7 @@
*/
#include <tqdir.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqdom.h>
#include <kstandarddirs.h>
@@ -25,7 +25,7 @@ static TQTextStream qcerr( stderr, IO_WriteOnly );
int main()
{
KInstance* inst = new KInstance( "Update script" );
- TQString filename = locateLocal( "data", TQString::tqfromLatin1( "kopete/contactlist.xml" ) );
+ TQString filename = locateLocal( "data", TQString::fromLatin1( "kopete/contactlist.xml" ) );
// Load contact list & save backup.
TQFile contactListFile( filename );
@@ -33,7 +33,7 @@ int main()
TQDomDocument contactList;
contactList.setContent( &contactListFile );
contactListFile.close();
- TQDir().rename( filename, filename + TQString::tqfromLatin1( ".bak" ) );
+ TQDir().rename( filename, filename + TQString::fromLatin1( ".bak" ) );
// parse the XML file
TQDomElement list = contactList.documentElement();
@@ -43,7 +43,7 @@ int main()
{
// update all the MetaContacts
- if( mcElement.tagName() == TQString::tqfromLatin1("meta-contact") )
+ if( mcElement.tagName() == TQString::fromLatin1("meta-contact") )
{
TQDomElement displayName;
TQDomElement subcontact;
@@ -51,13 +51,13 @@ int main()
TQDomElement elem = mcElement.firstChild().toElement();
while( !elem.isNull() )
{
- if( elem.tagName() == TQString::tqfromLatin1( "display-name" ) )
+ if( elem.tagName() == TQString::fromLatin1( "display-name" ) )
displayName = elem;
- if( elem.tagName() == TQString::tqfromLatin1( "plugin-data" ) )
+ if( elem.tagName() == TQString::fromLatin1( "plugin-data" ) )
{
// check if it's a contact by checking for "protocol" substring in the tag,
// and the presence of a contactId child element.
- TQString pluginId = elem.attribute( TQString::tqfromLatin1( "plugin-id" ) );
+ TQString pluginId = elem.attribute( TQString::fromLatin1( "plugin-id" ) );
bool isProtocol = ( pluginId.contains( "protocol", false ) > 0 ); // case-insensitive search
bool hasContactId = false;
TQDomNode field = elem.firstChild();
@@ -66,8 +66,8 @@ int main()
TQDomElement fieldElem = field.toElement();
if( !fieldElem.isNull() &&
- fieldElem.tagName() == TQString::tqfromLatin1( "plugin-data-field" ) &&
- fieldElem.attribute( TQString::tqfromLatin1( "key" ) ) == TQString::tqfromLatin1( "contactId" ) )
+ fieldElem.tagName() == TQString::fromLatin1( "plugin-data-field" ) &&
+ fieldElem.attribute( TQString::fromLatin1( "key" ) ) == TQString::fromLatin1( "contactId" ) )
{
hasContactId = true;
break;
@@ -85,8 +85,8 @@ int main()
// check if we're even tracking the subcontact's name
// if displayName.isNull(), it simply won't find the attribute; no harm done
bool tracking =
- ( displayName.attribute( TQString::tqfromLatin1( "trackChildNameChanges" ),
- TQString::tqfromLatin1( "0" ) ) == TQString::tqfromLatin1( "1" ) );
+ ( displayName.attribute( TQString::fromLatin1( "trackChildNameChanges" ),
+ TQString::fromLatin1( "0" ) ) == TQString::fromLatin1( "1" ) );
if( !displayName.isNull() && !subcontact.isNull() && tracking )
{
// collect info
@@ -94,26 +94,26 @@ int main()
TQString nsPID;
TQString nsAID;
- nsPID = subcontact.attribute( TQString::tqfromLatin1( "plugin-id" ) );
+ nsPID = subcontact.attribute( TQString::fromLatin1( "plugin-id" ) );
TQDomNode field = subcontact.firstChild();
while( !field.isNull() )
{
TQDomElement fieldElem = field.toElement();
- if( !fieldElem.isNull() && fieldElem.tagName() == TQString::tqfromLatin1( "plugin-data-field" ) )
+ if( !fieldElem.isNull() && fieldElem.tagName() == TQString::fromLatin1( "plugin-data-field" ) )
{
- if( fieldElem.attribute( TQString::tqfromLatin1( "key" ) ) == TQString::tqfromLatin1( "contactId" ) )
+ if( fieldElem.attribute( TQString::fromLatin1( "key" ) ) == TQString::fromLatin1( "contactId" ) )
nsCID = fieldElem.text();
- if( fieldElem.attribute( TQString::tqfromLatin1( "key" ) ) == TQString::tqfromLatin1( "accountId" ) )
+ if( fieldElem.attribute( TQString::fromLatin1( "key" ) ) == TQString::fromLatin1( "accountId" ) )
nsAID = fieldElem.text();
}
field = field.nextSibling();
}
// create the tracking info
- displayName.setAttribute( TQString::tqfromLatin1( "nameSourceContactId" ), nsCID );
- displayName.setAttribute( TQString::tqfromLatin1( "nameSourcePluginId" ), nsPID );
- displayName.setAttribute( TQString::tqfromLatin1( "nameSourceAccountId" ), nsAID );
+ displayName.setAttribute( TQString::fromLatin1( "nameSourceContactId" ), nsCID );
+ displayName.setAttribute( TQString::fromLatin1( "nameSourcePluginId" ), nsPID );
+ displayName.setAttribute( TQString::fromLatin1( "nameSourceAccountId" ), nsAID );
}
}
diff --git a/kopete/kopete/kconf_update/kopete-pluginloader2.cpp b/kopete/kopete/kconf_update/kopete-pluginloader2.cpp
index d9b0fb39..42878e68 100644
--- a/kopete/kopete/kconf_update/kopete-pluginloader2.cpp
+++ b/kopete/kopete/kconf_update/kopete-pluginloader2.cpp
@@ -16,7 +16,7 @@
*************************************************************************
*/
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqregexp.h>
static TQTextStream qcin ( stdin, IO_ReadOnly );
diff --git a/kopete/kopete/kimiface.h b/kopete/kopete/kimiface.h
index 6c83c299..9c5e4306 100644
--- a/kopete/kopete/kimiface.h
+++ b/kopete/kopete/kimiface.h
@@ -90,7 +90,7 @@ k_dcop:
* @param uid the KABC uid you want the presence for.
* @return a numeric representation of presence - currently one of 0 (Unknown), 1 (Offline), 2 (Connecting), 3 (Away), 4 (Online)
*/
- virtual int presencetqStatus( const TQString & uid ) = 0;
+ virtual int presenceStatus( const TQString & uid ) = 0;
/**
* Indicate if a given uid can receive files
* @param uid the KABC uid you are interested in.
@@ -177,7 +177,7 @@ k_dcop_signals:
* Indicates that a contact's presence has changed
* @param uid the contact whose presence changed.
* @param appId the dcop application id of the program the signal originates from.
- * @param presence the new numeric presence @ref presencetqStatus
+ * @param presence the new numeric presence @ref presenceStatus
*/
void contactPresenceChanged( TQString uid, TQCString appId, int presence );
};
diff --git a/kopete/kopete/kimifaceimpl.cpp b/kopete/kopete/kimifaceimpl.cpp
index b9fffeb2..b9a2dd45 100644
--- a/kopete/kopete/kimifaceimpl.cpp
+++ b/kopete/kopete/kimifaceimpl.cpp
@@ -127,7 +127,7 @@ TQString KIMIfaceImpl::displayName( const TQString & uid )
return name;
}
-int KIMIfaceImpl::presencetqStatus( const TQString & uid )
+int KIMIfaceImpl::presenceStatus( const TQString & uid )
{
//kdDebug( 14000 ) << k_funcinfo << endl;
int p = -1;
@@ -386,7 +386,7 @@ void KIMIfaceImpl::unknown( const TQString &uid )
{
TQString apology = i18n( "Translators: %1 is the name of a person taken from the KDE address book, who Kopete doesn't know about. Kopete must either be told that an existing contact in Kopete is this person, or add a new contact for them",
"<qt><p>The KDE Address Book has no instant messaging information for</p><p><b>%1</b>.</p><p>If he/she is already present in the Kopete contact list, indicate the correct addressbook entry in their properties.</p><p>Otherwise, add a new contact using the Add Contact wizard.</p></qt>" );
- apology = apology.tqarg( addr.realName() );
+ apology = apology.arg( addr.realName() );
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Information, apology, i18n( "No Instant Messaging Address" ) );
}
}
diff --git a/kopete/kopete/kimifaceimpl.h b/kopete/kopete/kimifaceimpl.h
index d99c6335..ec3a45e8 100644
--- a/kopete/kopete/kimifaceimpl.h
+++ b/kopete/kopete/kimifaceimpl.h
@@ -42,7 +42,7 @@ public:
bool isPresent( const TQString &uid );
TQString displayName( const TQString &uid );
TQString presenceString( const TQString &uid );
- int presencetqStatus( const TQString &uid );
+ int presenceStatus( const TQString &uid );
bool canReceiveFiles( const TQString &uid );
bool canRespond( const TQString &uid );
TQString locate( const TQString &contactId, const TQString &protocol );
diff --git a/kopete/kopete/kopeteapplication.cpp b/kopete/kopete/kopeteapplication.cpp
index d23c74f7..a2c88990 100644
--- a/kopete/kopete/kopeteapplication.cpp
+++ b/kopete/kopete/kopeteapplication.cpp
@@ -221,7 +221,7 @@ void KopeteApplication::slotAllPluginsLoaded()
for ( QCStringList::ConstIterator it = connectArgsC.begin(); it != connectArgsC.end(); ++it )
{
- TQStringList split = TQStringList::split( ',', TQString::tqfromLatin1( *it ) );
+ TQStringList split = TQStringList::split( ',', TQString::fromLatin1( *it ) );
for ( TQStringList::ConstIterator it2 = split.begin(); it2 != split.end(); ++it2 )
{
@@ -231,7 +231,7 @@ void KopeteApplication::slotAllPluginsLoaded()
for ( TQStringList::ConstIterator i = connectArgs.begin(); i != connectArgs.end(); ++i )
{
- TQRegExp rx( TQString::tqfromLatin1( "([^\\|]*)\\|\\|(.*)" ) );
+ TQRegExp rx( TQString::fromLatin1( "([^\\|]*)\\|\\|(.*)" ) );
rx.search( *i );
TQString protocolId = rx.cap( 1 );
TQString accountId = rx.cap( 2 );
diff --git a/kopete/kopete/kopeteballoon.cpp b/kopete/kopete/kopeteballoon.cpp
index decfb2cd..ebc6aeab 100644
--- a/kopete/kopete/kopeteballoon.cpp
+++ b/kopete/kopete/kopeteballoon.cpp
@@ -21,7 +21,7 @@
#include <tqpointarray.h>
#include <tqpushbutton.h>
#include <tqtooltip.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqtimer.h>
#include <tdeversion.h>
@@ -78,7 +78,7 @@ KopeteBalloon::KopeteBalloon(const TQString &text, const TQString &pix)
//TQLabel *mCaption = new TQLabel(text, this, "mCaption");
KopeteActiveLabel *mCaption = new KopeteActiveLabel(text, this, "mCaption");
mCaption->setPalette(TQToolTip::palette());
- mCaption->tqsetSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum );
+ mCaption->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum );
if (!pix.isEmpty())
{
@@ -159,8 +159,8 @@ void KopeteBalloon::updateMask()
mask -= corner;
}
- // get screen-tqgeometry for screen our anchor is on
- // (tqgeometry can differ from screen to screen!
+ // get screen-geometry for screen our anchor is on
+ // (geometry can differ from screen to screen!
TQRect deskRect = KGlobalSettings::desktopGeometry(mAnchor);
bool bottom = (mAnchor.y() + height()) > ((deskRect.y() + deskRect.height()-48));
diff --git a/kopete/kopete/kopeteeditglobalidentitywidget.cpp b/kopete/kopete/kopeteeditglobalidentitywidget.cpp
index 4e752fa8..37fa4020 100644
--- a/kopete/kopete/kopeteeditglobalidentitywidget.cpp
+++ b/kopete/kopete/kopeteeditglobalidentitywidget.cpp
@@ -18,7 +18,7 @@
#include "kopeteeditglobalidentitywidget.h"
// TQt include
-#include <tqlayout.h>
+#include <layout.h>
#include <tqimage.h>
#include <tqpixmap.h>
#include <tqtooltip.h>
diff --git a/kopete/kopete/kopeteiface.cpp b/kopete/kopete/kopeteiface.cpp
index 2055e002..a197c649 100644
--- a/kopete/kopete/kopeteiface.cpp
+++ b/kopete/kopete/kopeteiface.cpp
@@ -74,7 +74,7 @@ TQStringList KopeteIface::onlineContacts()
return result;
}
-TQStringList KopeteIface::contactstqStatus()
+TQStringList KopeteIface::contactsStatus()
{
return Kopete::ContactList::self()->contactStatuses();
}
@@ -114,7 +114,7 @@ void KopeteIface::sendFile(const TQString &displayName, const KURL &sourceURL,
*/
-TQString KopeteIface::onlinetqStatus( const TQString &metaContactId )
+TQString KopeteIface::onlineStatus( const TQString &metaContactId )
{
Kopete::MetaContact *m = Kopete::ContactList::self()->metaContact( metaContactId );
if( m )
@@ -159,7 +159,7 @@ bool KopeteIface::addContact( const TQString &protocolName, const TQString &acco
// even be at the computer. We just need to add the contact --Matt
if( KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(), i18n( "An external application is attempting to add the "
" '%1' contact '%2' to your contact list. Do you want to allow this?" )
- .tqarg( protocolName ).tqarg( contactName ), i18n( "Allow Contact?" ), i18n("Allow"), i18n("Reject") ) == 3 ) // Yes == 3
+ .arg( protocolName ).arg( contactName ), i18n( "Allow Contact?" ), i18n("Allow"), i18n("Reject") ) == 3 ) // Yes == 3
{
//User said Yes
myAccount->addContact( contactId, contactName, realGroup, Kopete::Account::DontChangeKABC);
@@ -173,7 +173,7 @@ bool KopeteIface::addContact( const TQString &protocolName, const TQString &acco
//This protocol is not loaded
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error,
i18n("An external application has attempted to add a contact using "
- " the %1 protocol, which either does not exist or is not loaded.").tqarg( protocolName ),
+ " the %1 protocol, which either does not exist or is not loaded.").arg( protocolName ),
i18n("Missing Protocol"));
return false;
diff --git a/kopete/kopete/kopeteiface.h b/kopete/kopete/kopeteiface.h
index 68124007..f68c3c57 100644
--- a/kopete/kopete/kopeteiface.h
+++ b/kopete/kopete/kopeteiface.h
@@ -46,8 +46,8 @@ k_dcop:
// FIXME: Do we *need* this one? Sounds error prone to me, because
// nicknames can contain parentheses too.
- // Better add a contacttqStatus( const TQString id ) I'd say - Martijn
- TQStringList contactstqStatus();
+ // Better add a contactStatus( const TQString id ) I'd say - Martijn
+ TQStringList contactsStatus();
/**
* Open a chat to a contact, and optionally set some initial text
@@ -58,7 +58,7 @@ k_dcop:
* Describe the status of a contact by their metaContactId,
* aka their uid in KABC.
*/
- TQString onlinetqStatus( const TQString &metaContactId );
+ TQString onlineStatus( const TQString &metaContactId );
/**
* Message a contact by their metaContactId, aka their uid in KABC.
diff --git a/kopete/kopete/kopetewindow.cpp b/kopete/kopete/kopetewindow.cpp
index 619679d3..3e19735d 100644
--- a/kopete/kopete/kopetewindow.cpp
+++ b/kopete/kopete/kopetewindow.cpp
@@ -22,7 +22,7 @@
#include "kopetewindow.h"
#include <tqcursor.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqhbox.h>
#include <tqvbox.h>
#include <tqtooltip.h>
@@ -327,13 +327,13 @@ void KopeteWindow::initActions()
slotConfigChanged();
globalAccel = new KGlobalAccel( TQT_TQOBJECT(this) );
- globalAccel->insert( TQString::tqfromLatin1("Read Message"), i18n("Read Message"), i18n("Read the next pending message"),
+ globalAccel->insert( TQString::fromLatin1("Read Message"), i18n("Read Message"), i18n("Read the next pending message"),
CTRL+SHIFT+Key_I, KKey::QtWIN+CTRL+Key_I, Kopete::ChatSessionManager::self(), TQT_SLOT(slotReadMessage()) );
- globalAccel->insert( TQString::tqfromLatin1("Show/Hide Contact List"), i18n("Show/Hide Contact List"), i18n("Show or hide the contact list"),
+ globalAccel->insert( TQString::fromLatin1("Show/Hide Contact List"), i18n("Show/Hide Contact List"), i18n("Show or hide the contact list"),
CTRL+SHIFT+Key_S, KKey::QtWIN+CTRL+Key_S, TQT_TQOBJECT(this), TQT_SLOT(slotShowHide()) );
- globalAccel->insert( TQString::tqfromLatin1("Set Away/Back"), i18n("Set Away/Back"), i18n("Sets away from keyboard or sets back"),
+ globalAccel->insert( TQString::fromLatin1("Set Away/Back"), i18n("Set Away/Back"), i18n("Sets away from keyboard or sets back"),
CTRL+SHIFT+Key_W, KKey::QtWIN+CTRL+SHIFT+Key_W, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAway()) );
globalAccel->readSettings();
@@ -727,7 +727,7 @@ void KopeteWindow::slotAccountRegistered( Kopete::Account *account )
// add an item for this account to the add contact actionmenu
TQString s = "actionAdd%1Contact";
- s.tqarg( account->accountId() );
+ s.arg( account->accountId() );
KAction *action = new KAction( account->accountLabel(), account->accountIcon(), 0 , addContactMapper, TQT_SLOT( map() ), account, s.latin1() );
addContactMapper->setMapping( action, account->protocol()->pluginId() + TQChar(0xE000) + account->accountId() );
actionAddContact->insert( action );
@@ -756,7 +756,7 @@ void KopeteWindow::slotAccountUnregistered( const Kopete::Account *account)
// update add contact actionmenu
TQString s = "actionAdd%1Contact";
- s.tqarg( account->accountId() );
+ s.arg( account->accountId() );
// KAction * action = actionCollection()->action( account->accountId() );
Kopete::Account * myAccount = const_cast< Kopete::Account * > ( account );
KAction * action = static_cast< KAction *>( myAccount->child( s.latin1() ) );
@@ -779,7 +779,7 @@ void KopeteWindow::slotAccountStatusIconChanged( Kopete::Contact *contact )
kdDebug( 14000 ) << k_funcinfo << contact->property( Kopete::Global::Properties::self()->awayMessage() ).value() << endl;
// update the global status label if the change doesn't
// TQString newAwayMessage = contact->property( Kopete::Global::Properties::self()->awayMessage() ).value().toString();
- Kopete::OnlineStatus status = contact->onlinetqStatus();
+ Kopete::OnlineStatus status = contact->onlineStatus();
/* if ( status.status() != Kopete::OnlineStatus::Connecting )
{
TQString globalMessage = m_globalStatusMessage->text();
@@ -861,17 +861,17 @@ void KopeteWindow::makeTrayToolTip()
{
TQToolTip::remove(m_tray);
- TQString tt = TQString::tqfromLatin1("<qt>");
+ TQString tt = TQString::fromLatin1("<qt>");
TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
for(Kopete::Account *a = accounts.first(); a; a = accounts.next())
{
Kopete::Contact *self = a->myself();
tt += i18n( "Account tooltip information: <nobr>ICON <b>PROTOCOL:</b> NAME (<i>STATUS</i>)<br/>",
"<nobr><img src=\"kopete-account-icon:%3:%4\"> <b>%1:</b> %2 (<i>%5</i>)<br/>" )
- .tqarg( a->protocol()->displayName() ).tqarg( a->accountLabel(), KURL::encode_string( a->protocol()->pluginId() ),
- KURL::encode_string( a->accountId() ), self->onlinetqStatus().description() );
+ .arg( a->protocol()->displayName() ).arg( a->accountLabel(), KURL::encode_string( a->protocol()->pluginId() ),
+ KURL::encode_string( a->accountId() ), self->onlineStatus().description() );
}
- tt += TQString::tqfromLatin1("</qt>");
+ tt += TQString::fromLatin1("</qt>");
TQToolTip::add(m_tray, tt);
}
}
@@ -931,7 +931,7 @@ void KopeteWindow::showEvent( TQShowEvent * )
void KopeteWindow::slotAutoHide()
{
- if ( this->tqgeometry().contains( TQCursor::pos() ) == false )
+ if ( this->geometry().contains( TQCursor::pos() ) == false )
{
/* The autohide-timer doesn't need to emit
* timeouts when the window is hidden already. */
@@ -954,11 +954,11 @@ void KopeteWindow::setStatusMessage( const TQString & message )
for ( TQPtrListIterator<Kopete::Account> it( Kopete::AccountManager::self()->accounts() ); it.current(); ++it )
{
Kopete::Contact *self = it.current()->myself();
- bool isInvisible = self && self->onlinetqStatus().status() == Kopete::OnlineStatus::Invisible;
+ bool isInvisible = self && self->onlineStatus().status() == Kopete::OnlineStatus::Invisible;
if ( it.current()->isConnected() && !isInvisible )
{
changed = true;
- it.current()->setOnlineStatus( self->onlinetqStatus(), message );
+ it.current()->setOnlineStatus( self->onlineStatus(), message );
}
}
Kopete::Away::getInstance()->setGlobalAwayMessage( message );
diff --git a/kopete/kopete/kopetewindow.h b/kopete/kopete/kopetewindow.h
index 7d881c79..4148104a 100644
--- a/kopete/kopete/kopetewindow.h
+++ b/kopete/kopete/kopetewindow.h
@@ -175,7 +175,7 @@ private slots:
void slotAllPluginsLoaded();
/**
- * Protected slot to setup the Set Global tqStatus Message menu.
+ * Protected slot to setup the Set Global Status Message menu.
*/
void slotBuildStatusMessageMenu();
void slotStatusMessageSelected( int i );
diff --git a/kopete/kopete/systemtray.cpp b/kopete/kopete/systemtray.cpp
index 8535f0a0..89ce1351 100644
--- a/kopete/kopete/systemtray.cpp
+++ b/kopete/kopete/systemtray.cpp
@@ -164,7 +164,7 @@ void KopeteSystemTray::startBlink( const TQMovie &movie )
void KopeteSystemTray::startBlink()
{
if ( mMovie.isNull() )
- mMovie = KGlobal::iconLoader()->loadMovie( TQString::tqfromLatin1( "newmessage" ), KIcon::Panel );
+ mMovie = KGlobal::iconLoader()->loadMovie( TQString::fromLatin1( "newmessage" ), KIcon::Panel );
startBlink( mMovie );
}
@@ -302,7 +302,7 @@ void KopeteSystemTray::addBalloon()
m_balloon = new KopeteBalloon(
i18n( "<qt><nobr><b>New Message from %1:</b></nobr><br><nobr>\"%2\"</nobr></qt>" )
- .tqarg( TQStyleSheet::escape( msgFrom ), msgText ), TQString() );
+ .arg( TQStyleSheet::escape( msgFrom ), msgText ), TQString() );
connect(m_balloon, TQT_SIGNAL(signalBalloonClicked()), mBalloonEventList.first() , TQT_SLOT(apply()));
connect(m_balloon, TQT_SIGNAL(signalButtonClicked()), mBalloonEventList.first() , TQT_SLOT(apply()));
connect(m_balloon, TQT_SIGNAL(signalIgnoreButtonClicked()), mBalloonEventList.first() , TQT_SLOT(ignore()));
@@ -343,12 +343,12 @@ void KopeteSystemTray::slotReevaluateAccountStates()
if (!c)
continue;
- if (c->onlinetqStatus().status() == Kopete::OnlineStatus::Online)
+ if (c->onlineStatus().status() == Kopete::OnlineStatus::Online)
{
bOnline = true; // at least one contact is online
}
- else if (c->onlinetqStatus().status() == Kopete::OnlineStatus::Away
- || c->onlinetqStatus().status() == Kopete::OnlineStatus::Invisible)
+ else if (c->onlineStatus().status() == Kopete::OnlineStatus::Away
+ || c->onlineStatus().status() == Kopete::OnlineStatus::Invisible)
{
bAway = true; // at least one contact is away or invisible
}
@@ -397,7 +397,7 @@ TQString KopeteSystemTray::squashMessage( const Kopete::Message& msg )
// Escape it after snipping it to not snip entities
msgText =msg.plainBody() ;
if( msgText.length() > 30 )
- msgText = msgText.left( 30 ) + TQString::tqfromLatin1( " ..." );
+ msgText = msgText.left( 30 ) + TQString::fromLatin1( " ..." );
msgText=Kopete::Message::escape(msgText);
}
else
@@ -411,17 +411,17 @@ TQString KopeteSystemTray::squashMessage( const Kopete::Message& msg )
{
TQString urlWithoutProtocol = rx.cap( 4 );
shorterUrl = urlWithoutProtocol.left( 27 )
- + TQString::tqfromLatin1( "... " );
+ + TQString::fromLatin1( "... " );
}
else
{
shorterUrl = fullUrl.left( 27 )
- + TQString::tqfromLatin1( "... " );
+ + TQString::fromLatin1( "... " );
}
// remove message text
- msgText = TQString::tqfromLatin1( "... " ) +
+ msgText = TQString::fromLatin1( "... " ) +
rx.cap( 1 ) +
- TQString::tqfromLatin1( " ..." );
+ TQString::fromLatin1( " ..." );
// find last occurrence of URL (the one inside the <a> tag)
int revUrlOffset = msgText.findRev( fullUrl );
msgText.replace( revUrlOffset,