From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libksirtet/lib/internal.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'libksirtet/lib/internal.cpp') diff --git a/libksirtet/lib/internal.cpp b/libksirtet/lib/internal.cpp index c7b69f9e..f8b34085 100644 --- a/libksirtet/lib/internal.cpp +++ b/libksirtet/lib/internal.cpp @@ -1,7 +1,7 @@ #include "internal.h" #include "internal.moc" -#include +#include #include #include "mp_interface.h" @@ -67,17 +67,17 @@ void Server::serverTimeout() //----------------------------------------------------------------------------- Network::Network(MPInterface *_interface, - QValueList &_boards, - const QPtrList &rhd) + TQValueList &_boards, + const TQPtrList &rhd) : Local(_interface, _boards) { RemoteData rd; - QPtrListIterator it(rhd); + TQPtrListIterator it(rhd); for (; it.current(); ++it) { rd.socket = it.current()->socket; rd.socket->notifier()->setEnabled(TRUE); - connect(rd.socket->notifier(), SIGNAL(activated(int)), - SLOT(notifier(int))); + connect(rd.socket->notifier(), TQT_SIGNAL(activated(int)), + TQT_SLOT(notifier(int))); uint nb = it.current()->bds.count(); Q_ASSERT( nb>=1 ); rd.array = new BufferArray(nb); @@ -102,7 +102,7 @@ uint Network::nbPlayers() const return nb; } -QString Network::playerName(uint i) const +TQString Network::playerName(uint i) const { uint l = Local::nbPlayers(); if ( i &_boards, + TQValueList &_boards, uint _interval) : Local(_interface, _boards), Server(_interval) { - connect(&timer, SIGNAL(timeout()), SLOT(timeoutSlot())); - connect(&ctimer, SIGNAL(timeout()), SLOT(congestionTimeoutSlot())); + connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeoutSlot())); + connect(&ctimer, TQT_SIGNAL(timeout()), TQT_SLOT(congestionTimeoutSlot())); serverTimeout(); } //----------------------------------------------------------------------------- NetworkServer::NetworkServer(MPInterface *_interface, - QValueList &_boards, - const QPtrList &rhd, uint _interval) + TQValueList &_boards, + const TQPtrList &rhd, uint _interval) : Network(_interface, _boards, rhd), Server(_interval), nbReceived(remotes.count()) { - connect(&timer, SIGNAL(timeout()), SLOT(timeoutSlot())); - connect(&ctimer, SIGNAL(timeout()), SLOT(congestionTimeoutSlot())); + connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeoutSlot())); + connect(&ctimer, TQT_SIGNAL(timeout()), TQT_SLOT(congestionTimeoutSlot())); // to catch unexpected data for (uint i=0; i