summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/ui/jabberaddcontactpage.cpp')
-rw-r--r--kopete/protocols/jabber/ui/jabberaddcontactpage.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp b/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp
index 950d5680..076b92b8 100644
--- a/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp
+++ b/kopete/protocols/jabber/ui/jabberaddcontactpage.cpp
@@ -20,11 +20,11 @@
#include "jabberaddcontactpage.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klineedit.h>
#include <klocale.h>
#include <kopeteaccount.h>
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kopetegroup.h>
#include <kopetemetacontact.h>
@@ -35,9 +35,9 @@
#include "jabberclient.h"
#include "xmpp_tasks.h"
-JabberAddContactPage::JabberAddContactPage (Kopete::Account * owner, QWidget * parent, const char *name):AddContactPage (parent, name)
+JabberAddContactPage::JabberAddContactPage (Kopete::Account * owner, TQWidget * parent, const char *name):AddContactPage (parent, name)
{
- (new QVBoxLayout (this))->setAutoAdd (true);
+ (new TQVBoxLayout (this))->setAutoAdd (true);
JabberTransport *transport=dynamic_cast<JabberTransport*>(owner);
JabberAccount *jaccount= transport ? transport->account() : dynamic_cast<JabberAccount*>(owner);
@@ -51,7 +51,7 @@ JabberAddContactPage::JabberAddContactPage (Kopete::Account * owner, QWidget * p
{
jabData->textLabel1->setText( i18n("Loading instruction from gateway...") );
XMPP::JT_Gateway * gatewayTask = new XMPP::JT_Gateway ( jaccount->client()->rootTask () );
- QObject::connect (gatewayTask, SIGNAL (finished ()), this, SLOT (slotPromtReceived()));
+ TQObject::connect (gatewayTask, TQT_SIGNAL (finished ()), this, TQT_SLOT (slotPromtReceived()));
gatewayTask->get ( transport->myself()->contactId() );
gatewayTask->go ( true );
}
@@ -59,8 +59,8 @@ JabberAddContactPage::JabberAddContactPage (Kopete::Account * owner, QWidget * p
}
else
{
- noaddMsg1 = new QLabel (i18n ("You need to be connected to be able to add contacts."), this);
- noaddMsg2 = new QLabel (i18n ("Connect to the Jabber network and try again."), this);
+ noaddMsg1 = new TQLabel (i18n ("You need to be connected to be able to add contacts."), this);
+ noaddMsg2 = new TQLabel (i18n ("Connect to the Jabber network and try again."), this);
canadd = false;
}
@@ -84,26 +84,26 @@ bool JabberAddContactPage::apply ( Kopete::Account *account, Kopete::MetaContact
JabberTransport *transport=dynamic_cast<JabberTransport*>(account);
JabberAccount *jaccount=transport?transport->account():dynamic_cast<JabberAccount*>(account);
- QString contactId = jabData->addID->text ();
+ TQString contactId = jabData->addID->text ();
if(transport)
{
XMPP::JT_Gateway * gatewayTask = new XMPP::JT_Gateway ( jaccount->client()->rootTask () );
JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND *workaround =
new JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND( transport , parentContact , gatewayTask );
- QObject::connect (gatewayTask, SIGNAL (finished ()), workaround, SLOT (slotJidReceived()));
+ TQObject::connect (gatewayTask, TQT_SIGNAL (finished ()), workaround, TQT_SLOT (slotJidReceived()));
gatewayTask->set ( transport->myself()->contactId() , contactId );
gatewayTask->go ( true );
return true;
}
- QString displayName = parentContact->displayName ();
+ TQString displayName = parentContact->displayName ();
/*
if ( displayName.isEmpty () )
displayName = contactId;
*/
// collect all group names
- QStringList groupNames;
+ TQStringList groupNames;
Kopete::GroupList groupList = parentContact->groups();
for(Kopete::Group *group = groupList.first(); group; group = groupList.next())
groupNames += group->displayName();
@@ -151,8 +151,8 @@ void JabberAddContactPage::slotPromtReceived( )
}
}
-JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND::JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND( JabberTransport *t, Kopete::MetaContact * mc, QObject* task )
- : QObject(task) , metacontact(mc) , transport(t)
+JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND::JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND( JabberTransport *t, Kopete::MetaContact * mc, TQObject* task )
+ : TQObject(task) , metacontact(mc) , transport(t)
{}
void JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND::slotJidReceived( )
@@ -165,7 +165,7 @@ void JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND::slot
// maybe we should show an error message, but i don't like showing error message - Olivier
}
- QString contactId=task->prompt();
+ TQString contactId=task->prompt();
Kopete::MetaContact* parentContact=metacontact;
JabberAccount *jaccount=transport->account();;
@@ -174,13 +174,13 @@ void JabberAddContactPage_there_is_no_possibility_to_add_assync_WORKAROUND::slot
* this is a copy of the end of JabberAddContactPage::apply
\*/
- QString displayName = parentContact->displayName ();
+ TQString displayName = parentContact->displayName ();
/*
if ( displayName.isEmpty () )
displayName = contactId;
*/
// collect all group names
- QStringList groupNames;
+ TQStringList groupNames;
Kopete::GroupList groupList = parentContact->groups();
for(Kopete::Group *group = groupList.first(); group; group = groupList.next())
groupNames += group->displayName();