summaryrefslogtreecommitdiffstats
path: root/ksmiletris/gamewindow.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 /ksmiletris/gamewindow.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 'ksmiletris/gamewindow.cpp')
-rw-r--r--ksmiletris/gamewindow.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/ksmiletris/gamewindow.cpp b/ksmiletris/gamewindow.cpp
index 60973530..991ff1c3 100644
--- a/ksmiletris/gamewindow.cpp
+++ b/ksmiletris/gamewindow.cpp
@@ -42,37 +42,37 @@ this software.
const int default_width = 362;
const int default_height = 460;
-GameWindow::GameWindow(QWidget *, const char *name)
+GameWindow::GameWindow(TQWidget *, const char *name)
: KMainWindow(0, name)
{
//New Games
(void)KStdGameAction::gameNew(this,
- SLOT(menu_newGame()),
+ TQT_SLOT(menu_newGame()),
actionCollection());
//Pause Game
(void)KStdGameAction::pause(this,
- SLOT(menu_pause()),
+ TQT_SLOT(menu_pause()),
actionCollection());
//End Game
(void)KStdGameAction::end(this,
- SLOT(menu_endGame()),
+ TQT_SLOT(menu_endGame()),
actionCollection());
//Highscores
(void)KStdGameAction::highscores(this,
- SLOT(menu_highScores()),
+ TQT_SLOT(menu_highScores()),
actionCollection());
//Quit
(void)KStdGameAction::quit(this,
- SLOT(close()),
+ TQT_SLOT(close()),
actionCollection());
- QStringList list;
+ TQStringList list;
KSelectAction* piecesAct =
- new KSelectAction(i18n("&Pieces"), 0, this, SLOT(menu_pieces()),
+ new KSelectAction(i18n("&Pieces"), 0, this, TQT_SLOT(menu_pieces()),
actionCollection(), "settings_pieces");
list.append(i18n("&Smiles"));
list.append(i18n("S&ymbols"));
@@ -80,14 +80,14 @@ GameWindow::GameWindow(QWidget *, const char *name)
piecesAct->setItems(list);
(void)new KToggleAction(i18n("&Sounds"), 0, this,
- SLOT(menu_sounds()), actionCollection(), "settings_sounds");
+ TQT_SLOT(menu_sounds()), actionCollection(), "settings_sounds");
- //connect(menu, SIGNAL(moved(menuPosition)),
- // this, SLOT(movedMenu(menuPosition))); ?
+ //connect(menu, TQT_SIGNAL(moved(menuPosition)),
+ // this, TQT_SLOT(movedMenu(menuPosition))); ?
status = new KStatusBar(this);
status->insertItem(i18n("Level: 99"), 1);
@@ -97,16 +97,16 @@ GameWindow::GameWindow(QWidget *, const char *name)
game = new GameWidget(this);
setCentralWidget(game);
- connect(game, SIGNAL(changedStats(int, int)),
- this, SLOT(updateStats(int, int)));
- connect(game, SIGNAL(gameOver()), this, SLOT(gameOver()));
+ connect(game, TQT_SIGNAL(changedStats(int, int)),
+ this, TQT_SLOT(updateStats(int, int)));
+ connect(game, TQT_SIGNAL(gameOver()), this, TQT_SLOT(gameOver()));
//keys
- (void)new KAction(i18n("Move Left"), Key_Left, game, SLOT(keyLeft()), actionCollection(), "left");
- (void)new KAction(i18n("Move Right"), Key_Right, game, SLOT(keyRight()), actionCollection(), "right");
- (void)new KAction(i18n("Rotate Left"), Key_Up, game, SLOT(keyUp()), actionCollection(), "up");
- (void)new KAction(i18n("Rotate Right"), Key_Down, game, SLOT(keyDown()), actionCollection(), "down");
- (void)new KAction(i18n("Drop Down"), Key_Space, game, SLOT(keySpace()), actionCollection(), "space");
+ (void)new KAction(i18n("Move Left"), Key_Left, game, TQT_SLOT(keyLeft()), actionCollection(), "left");
+ (void)new KAction(i18n("Move Right"), Key_Right, game, TQT_SLOT(keyRight()), actionCollection(), "right");
+ (void)new KAction(i18n("Rotate Left"), Key_Up, game, TQT_SLOT(keyUp()), actionCollection(), "up");
+ (void)new KAction(i18n("Rotate Right"), Key_Down, game, TQT_SLOT(keyDown()), actionCollection(), "down");
+ (void)new KAction(i18n("Drop Down"), Key_Space, game, TQT_SLOT(keySpace()), actionCollection(), "space");
game->setFixedSize(default_width, default_height);
adjustSize();
@@ -179,7 +179,7 @@ void GameWindow::menu_sounds()
void GameWindow::updateStats(int level, int points)
{
- QString l, p;
+ TQString l, p;
l.setNum(level);
p.setNum(points);
status->changeItem(i18n("Level: %1").arg(l), 1);