diff options
Diffstat (limited to 'kopete/protocols/jabber/ui/dlgjabberservices.cpp')
-rw-r--r-- | kopete/protocols/jabber/ui/dlgjabberservices.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kopete/protocols/jabber/ui/dlgjabberservices.cpp b/kopete/protocols/jabber/ui/dlgjabberservices.cpp index 00e99f45..1bd1310c 100644 --- a/kopete/protocols/jabber/ui/dlgjabberservices.cpp +++ b/kopete/protocols/jabber/ui/dlgjabberservices.cpp @@ -20,9 +20,9 @@ #include <klocale.h> #include <kdebug.h> -#include <qpushbutton.h> -#include <qlineedit.h> -#include <qtable.h> +#include <tqpushbutton.h> +#include <tqlineedit.h> +#include <tqtable.h> #include "jabberaccount.h" #include "jabberclient.h" @@ -32,7 +32,7 @@ #include "dlgjabberservices.moc" -dlgJabberServices::dlgJabberServices (JabberAccount *account, QWidget *parent, const char *name):dlgServices (parent, name) +dlgJabberServices::dlgJabberServices (JabberAccount *account, TQWidget *parent, const char *name):dlgServices (parent, name) { m_account = account; @@ -57,22 +57,22 @@ dlgJabberServices::dlgJabberServices (JabberAccount *account, QWidget *parent, c //tblServices->setColumnStretchable (1, true); // disable user selections - //tblServices->setSelectionMode (QTable::NoSelection); + //tblServices->setSelectionMode (TQTable::NoSelection); // name table headers //tblServices->horizontalHeader ()->setLabel (0, i18n ("Name")); //tblServices->horizontalHeader ()->setLabel (1, i18n ("Address")); - connect (btnQuery, SIGNAL (clicked ()), this, SLOT (slotDisco ())); - //connect (tblServices, SIGNAL (clicked (int, int, int, const QPoint &)), this, SLOT (slotSetSelection (int, int, int, const QPoint &))); - connect (lvServices, SIGNAL (selectionChanged (QListViewItem *)), this, SLOT (slotSetSelection (QListViewItem *))); + connect (btnQuery, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotDisco ())); + //connect (tblServices, TQT_SIGNAL (clicked (int, int, int, const TQPoint &)), this, TQT_SLOT (slotSetSelection (int, int, int, const TQPoint &))); + connect (lvServices, TQT_SIGNAL (selectionChanged (TQListViewItem *)), this, TQT_SLOT (slotSetSelection (TQListViewItem *))); - connect (btnRegister, SIGNAL (clicked ()), this, SLOT (slotRegister ())); - connect (btnBrowse, SIGNAL (clicked ()), this, SLOT (slotBrowse ())); + connect (btnRegister, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotRegister ())); + connect (btnBrowse, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotBrowse ())); } -void dlgJabberServices::slotSetSelection (QListViewItem *it) +void dlgJabberServices::slotSetSelection (TQListViewItem *it) { dlgJabberServies_item *item=dynamic_cast<dlgJabberServies_item*>(it); if(!item) @@ -99,7 +99,7 @@ void dlgJabberServices::slotService () } XMPP::JT_GetServices *serviceTask = new XMPP::JT_GetServices (m_account->client()->rootTask ()); - connect (serviceTask, SIGNAL (finished ()), this, SLOT (slotServiceFinished ())); + connect (serviceTask, TQT_SIGNAL (finished ()), this, TQT_SLOT (slotServiceFinished ())); /* populate server field if it is empty */ if(leServer->text().isEmpty()) @@ -121,7 +121,7 @@ void dlgJabberServices::slotServiceFinished () if (!task->success ()) { - QString error = task->statusString(); + TQString error = task->statusString(); KMessageBox::queuedMessageBox (this, KMessageBox::Error, i18n ("Unable to retrieve the list of services.\nReason: %1").arg(error), i18n ("Jabber Error")); return; } @@ -148,13 +148,13 @@ void dlgJabberServices::slotDisco() } JT_DiscoItems *jt = new JT_DiscoItems(m_account->client()->rootTask()); - connect(jt, SIGNAL(finished()), this, SLOT(slotDiscoFinished())); + connect(jt, TQT_SIGNAL(finished()), this, TQT_SLOT(slotDiscoFinished())); /* populate server field if it is empty */ if(leServer->text().isEmpty()) leServer->setText(m_account->server()); - jt->get(leServer->text() , QString()); + jt->get(leServer->text() , TQString()); jt->go(true); } @@ -168,11 +168,11 @@ void dlgJabberServices::slotDiscoFinished( ) if ( jt->success() ) { - QValueList<XMPP::DiscoItem> list = jt->items(); + TQValueList<XMPP::DiscoItem> list = jt->items(); lvServices->clear(); - for(QValueList<XMPP::DiscoItem>::ConstIterator it = list.begin(); it != list.end(); ++it) + for(TQValueList<XMPP::DiscoItem>::ConstIterator it = list.begin(); it != list.end(); ++it) { const XMPP::DiscoItem a = *it; dlgJabberServies_item *item=new dlgJabberServies_item( lvServices , (*it).jid ().userHost () , (*it).name ()); @@ -211,10 +211,10 @@ dlgJabberServices::~dlgJabberServices () { } -void dlgJabberServies_item::updateInfo( const XMPP::Jid & jid , const QString & node , JabberAccount *account ) +void dlgJabberServies_item::updateInfo( const XMPP::Jid & jid , const TQString & node , JabberAccount *account ) { XMPP::JT_DiscoInfo *jt = new XMPP::JT_DiscoInfo(account->client()->rootTask()); - connect(jt, SIGNAL(finished()),this, SLOT(slotDiscoFinished())); + connect(jt, TQT_SIGNAL(finished()),this, TQT_SLOT(slotDiscoFinished())); jt->get(jid, node); jt->go(true); |