summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/mp_simple_interface.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /libksirtet/lib/mp_simple_interface.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/lib/mp_simple_interface.cpp')
-rw-r--r--libksirtet/lib/mp_simple_interface.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libksirtet/lib/mp_simple_interface.cpp b/libksirtet/lib/mp_simple_interface.cpp
index e75243a6..1b83be40 100644
--- a/libksirtet/lib/mp_simple_interface.cpp
+++ b/libksirtet/lib/mp_simple_interface.cpp
@@ -2,7 +2,7 @@
#include "mp_simple_interface.moc"
#include <kmessagebox.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include <klocale.h>
#include <kaction.h>
#include <kmainwindow.h>
@@ -13,7 +13,7 @@
MPSimpleInterface::MPSimpleInterface(const MPGameInfo &gi,
uint nbActions, const ActionData *data,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: MPInterface(gi, nbActions, data, parent, name), state(SS_Standby)
{}
@@ -64,7 +64,7 @@ void MPSimpleInterface::pause()
}
}
-void MPSimpleInterface::dataFromServer(QDataStream &s)
+void MPSimpleInterface::dataFromServer(TQDataStream &s)
{
if ( s.atEnd() ) return; // no data
@@ -73,7 +73,7 @@ void MPSimpleInterface::dataFromServer(QDataStream &s)
switch (scf.value()) {
case SC_Flag::Stop:
KMessageBox::information(this, i18n("Server has left game!"));
- QTimer::singleShot(0, this, SLOT(singleHuman()));
+ TQTimer::singleShot(0, this, TQT_SLOT(singleHuman()));
return;
case SC_Flag::GameOver:
_readGameOverData(s);
@@ -141,7 +141,7 @@ void MPSimpleInterface::treatStop()
state = SS_Standby;
// read game over data + send them to all clients
- QDataStream &s = dataToClientsStream();
+ TQDataStream &s = dataToClientsStream();
SC_Flag f(SC_Flag::GameOver);
s << f;
_sendGameOverData(s);