summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/ui/jabberchooseserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/ui/jabberchooseserver.cpp')
-rw-r--r--kopete/protocols/jabber/ui/jabberchooseserver.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kopete/protocols/jabber/ui/jabberchooseserver.cpp b/kopete/protocols/jabber/ui/jabberchooseserver.cpp
index 66598432..63339158 100644
--- a/kopete/protocols/jabber/ui/jabberchooseserver.cpp
+++ b/kopete/protocols/jabber/ui/jabberchooseserver.cpp
@@ -24,8 +24,8 @@
#include <kio/global.h>
#include <kio/job.h>
#include <kio/jobclasses.h>
-#include <qtable.h>
-#include <qlabel.h>
+#include <tqtable.h>
+#include <tqlabel.h>
#include "jabberprotocol.h"
#include "dlgjabberchooseserver.h"
#include "jabberregisteraccount.h"
@@ -48,11 +48,11 @@ JabberChooseServer::JabberChooseServer ( JabberRegisterAccount *parent, const ch
// retrieve server list
mTransferJob = KIO::get ( "http://www.jabber.org/servers.xml" );
- connect ( mTransferJob, SIGNAL ( result ( KIO::Job* ) ), this, SLOT ( slotTransferResult ( KIO::Job* ) ) );
- connect ( mTransferJob, SIGNAL ( data ( KIO::Job*, const QByteArray& ) ), this, SLOT ( slotTransferData ( KIO::Job*, const QByteArray& ) ) );
+ connect ( mTransferJob, TQT_SIGNAL ( result ( KIO::Job* ) ), this, TQT_SLOT ( slotTransferResult ( KIO::Job* ) ) );
+ connect ( mTransferJob, TQT_SIGNAL ( data ( KIO::Job*, const TQByteArray& ) ), this, TQT_SLOT ( slotTransferData ( KIO::Job*, const TQByteArray& ) ) );
- connect ( mMainWidget->listServers, SIGNAL ( pressed ( int, int, int, const QPoint & ) ), this, SLOT ( slotSetSelection ( int ) ) );
- connect ( mMainWidget->listServers, SIGNAL ( doubleClicked ( int, int, int, const QPoint & ) ), this, SLOT ( slotOk () ) );
+ connect ( mMainWidget->listServers, TQT_SIGNAL ( pressed ( int, int, int, const TQPoint & ) ), this, TQT_SLOT ( slotSetSelection ( int ) ) );
+ connect ( mMainWidget->listServers, TQT_SIGNAL ( doubleClicked ( int, int, int, const TQPoint & ) ), this, TQT_SLOT ( slotOk () ) );
enableButtonOK ( false );
@@ -90,7 +90,7 @@ void JabberChooseServer::slotSetSelection ( int row )
}
-void JabberChooseServer::slotTransferData ( KIO::Job */*job*/, const QByteArray &data )
+void JabberChooseServer::slotTransferData ( KIO::Job */*job*/, const TQByteArray &data )
{
unsigned oldSize = xmlServerList.size ();
@@ -119,7 +119,7 @@ void JabberChooseServer::slotTransferResult ( KIO::Job *job )
mMainWidget->lblStatus->setText ( "" );
// parse XML list
- QDomDocument doc;
+ TQDomDocument doc;
if ( !doc.setContent ( xmlServerList ) )
{
@@ -127,14 +127,14 @@ void JabberChooseServer::slotTransferResult ( KIO::Job *job )
return;
}
- QDomElement docElement = doc.documentElement ();
+ TQDomElement docElement = doc.documentElement ();
mMainWidget->listServers->setNumRows ( docElement.childNodes().count () );
int listIndex = 0;
- for( QDomNode node = docElement.firstChild (); !node.isNull (); node = node.nextSibling (), listIndex++ )
+ for( TQDomNode node = docElement.firstChild (); !node.isNull (); node = node.nextSibling (), listIndex++ )
{
- QDomNamedNodeMap attributes = node.attributes ();
+ TQDomNamedNodeMap attributes = node.attributes ();
mMainWidget->listServers->setText ( listIndex, 0, attributes.namedItem ( "jid" ).nodeValue () );
mMainWidget->listServers->setText ( listIndex, 1, attributes.namedItem ( "name" ).nodeValue () );
}