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/mp_simple_interface.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libksirtet/lib/mp_simple_interface.cpp') 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 -#include +#include #include #include #include @@ -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); -- cgit v1.2.1