summaryrefslogtreecommitdiffstats
path: root/libksirtet/common/inter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libksirtet/common/inter.cpp')
-rw-r--r--libksirtet/common/inter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/libksirtet/common/inter.cpp b/libksirtet/common/inter.cpp
index e9f1688b..c5630108 100644
--- a/libksirtet/common/inter.cpp
+++ b/libksirtet/common/inter.cpp
@@ -12,17 +12,17 @@
const ActionData Interface::ACTION_DATA[Nb_Actions] = {
- { I18N_NOOP("Move Left"), "move left", SLOT(moveLeft()), 0 },
- { I18N_NOOP("Move Right"), "move right", SLOT(moveRight()), 0 },
- { I18N_NOOP("Drop Down"), "drop down", SLOT(dropDownStart()),
- SLOT(dropDownStop()) },
- { I18N_NOOP("One Line Down"), "one line down", SLOT(oneLineDown()), 0 },
- { I18N_NOOP("Rotate Left"), "rotate left", SLOT(rotateLeft()), 0 },
- { I18N_NOOP("Rotate Right"), "rotate right", SLOT(rotateRight()), 0 },
+ { I18N_NOOP("Move Left"), "move left", TQT_SLOT(moveLeft()), 0 },
+ { I18N_NOOP("Move Right"), "move right", TQT_SLOT(moveRight()), 0 },
+ { I18N_NOOP("Drop Down"), "drop down", TQT_SLOT(dropDownStart()),
+ TQT_SLOT(dropDownStop()) },
+ { I18N_NOOP("One Line Down"), "one line down", TQT_SLOT(oneLineDown()), 0 },
+ { I18N_NOOP("Rotate Left"), "rotate left", TQT_SLOT(rotateLeft()), 0 },
+ { I18N_NOOP("Rotate Right"), "rotate right", TQT_SLOT(rotateRight()), 0 },
{ I18N_NOOP("Move to Left Column"), "move left total",
- SLOT(moveLeftTotal()), 0 },
+ TQT_SLOT(moveLeftTotal()), 0 },
{ I18N_NOOP("Move to Right Column"), "move right total",
- SLOT(moveRightTotal()), 0 }
+ TQT_SLOT(moveRightTotal()), 0 }
};
const int Interface::KEYCODE_ONE[Nb_Actions] = {
@@ -33,7 +33,7 @@ const int Interface::KEYCODE_TWO[Nb_Actions] = {
Key_F, Key_G, Key_D, Key_Space, Key_E, Key_C, SHIFT+Key_F, SHIFT+Key_G
};
-Interface::Interface(const MPGameInfo &gi, QWidget *parent)
+Interface::Interface(const MPGameInfo &gi, TQWidget *parent)
: MPSimpleInterface(gi, Nb_Actions, ACTION_DATA, parent)
{
setDefaultKeycodes(1, 0, KEYCODE_ONE);
@@ -45,7 +45,7 @@ MPBoard *Interface::newBoard(uint i)
{
Field *f = static_cast<Field *>(cfactory->createField(this));
f->settingsChanged();
- connect(this, SIGNAL(settingsChanged()), f, SLOT(settingsChanged()));
+ connect(this, TQT_SIGNAL(settingsChanged()), f, TQT_SLOT(settingsChanged()));
if ( i==0 ) _firstField = f;
return f;
}
@@ -91,7 +91,7 @@ void Interface::_sendPlayData()
}
}
-void Interface::_showHighscores(QWidget *parent)
+void Interface::_showHighscores(TQWidget *parent)
{
if ( !server() || nbPlayers()!=1 ) _scores.show(parent);
else BaseInterface::_showHighscores(parent);
@@ -132,7 +132,7 @@ void Interface::_treatInit()
}
}
-void Interface::_sendGameOverData(QDataStream &s)
+void Interface::_sendGameOverData(TQDataStream &s)
{
bool multiplayers = ( nbPlayers()>1 );
for (uint i=0; i<nbPlayers(); i++) {
@@ -144,7 +144,7 @@ void Interface::_sendGameOverData(QDataStream &s)
}
// client only
-void Interface::_readGameOverData(QDataStream &s)
+void Interface::_readGameOverData(TQDataStream &s)
{
s >> _scores;
}