summaryrefslogtreecommitdiffstats
path: root/ksmiletris/gamewindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksmiletris/gamewindow.cpp')
-rw-r--r--ksmiletris/gamewindow.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/ksmiletris/gamewindow.cpp b/ksmiletris/gamewindow.cpp
index 5337868f..e566a8bb 100644
--- a/ksmiletris/gamewindow.cpp
+++ b/ksmiletris/gamewindow.cpp
@@ -46,48 +46,48 @@ GameWindow::GameWindow(TQWidget *, const char *name)
: TDEMainWindow(0, name)
{
//New Games
- (void)KStdGameAction::gameNew(TQT_TQOBJECT(this),
- TQT_SLOT(menu_newGame()),
+ (void)KStdGameAction::gameNew(this,
+ TQ_SLOT(menu_newGame()),
actionCollection());
//Pause Game
- (void)KStdGameAction::pause(TQT_TQOBJECT(this),
- TQT_SLOT(menu_pause()),
+ (void)KStdGameAction::pause(this,
+ TQ_SLOT(menu_pause()),
actionCollection());
//End Game
- (void)KStdGameAction::end(TQT_TQOBJECT(this),
- TQT_SLOT(menu_endGame()),
+ (void)KStdGameAction::end(this,
+ TQ_SLOT(menu_endGame()),
actionCollection());
//Highscores
- (void)KStdGameAction::highscores(TQT_TQOBJECT(this),
- TQT_SLOT(menu_highScores()),
+ (void)KStdGameAction::highscores(this,
+ TQ_SLOT(menu_highScores()),
actionCollection());
//Quit
- (void)KStdGameAction::quit(TQT_TQOBJECT(this),
- TQT_SLOT(close()),
+ (void)KStdGameAction::quit(this,
+ TQ_SLOT(close()),
actionCollection());
TQStringList list;
TDESelectAction* piecesAct =
- new TDESelectAction(i18n("&Pieces"), 0, TQT_TQOBJECT(this), TQT_SLOT(menu_pieces()),
+ new TDESelectAction(i18n("&Pieces"), 0, this, TQ_SLOT(menu_pieces()),
actionCollection(), "settings_pieces");
list.append(i18n("&Smiles"));
list.append(i18n("S&ymbols"));
list.append(i18n("&Icons"));
piecesAct->setItems(list);
- (void)new TDEToggleAction(i18n("&Sounds"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(menu_sounds()), actionCollection(), "settings_sounds");
+ (void)new TDEToggleAction(i18n("&Sounds"), 0, this,
+ TQ_SLOT(menu_sounds()), actionCollection(), "settings_sounds");
- //connect(menu, TQT_SIGNAL(moved(menuPosition)),
- // this, TQT_SLOT(movedMenu(menuPosition))); ?
+ //connect(menu, TQ_SIGNAL(moved(menuPosition)),
+ // this, TQ_SLOT(movedMenu(menuPosition))); ?
status = new KStatusBar(this);
status->insertItem(i18n("Level: 99"), 1);
@@ -97,16 +97,16 @@ GameWindow::GameWindow(TQWidget *, const char *name)
game = new GameWidget(this);
setCentralWidget(game);
- connect(game, TQT_SIGNAL(changedStats(int, int)),
- this, TQT_SLOT(updateStats(int, int)));
- connect(game, TQT_SIGNAL(gameOver()), TQT_TQOBJECT(this), TQT_SLOT(gameOver()));
+ connect(game, TQ_SIGNAL(changedStats(int, int)),
+ this, TQ_SLOT(updateStats(int, int)));
+ connect(game, TQ_SIGNAL(gameOver()), this, TQ_SLOT(gameOver()));
//keys
- (void)new TDEAction(i18n("Move Left"), Key_Left, TQT_TQOBJECT(game), TQT_SLOT(keyLeft()), actionCollection(), "left");
- (void)new TDEAction(i18n("Move Right"), Key_Right, TQT_TQOBJECT(game), TQT_SLOT(keyRight()), actionCollection(), "right");
- (void)new TDEAction(i18n("Rotate Left"), Key_Up, TQT_TQOBJECT(game), TQT_SLOT(keyUp()), actionCollection(), "up");
- (void)new TDEAction(i18n("Rotate Right"), Key_Down, TQT_TQOBJECT(game), TQT_SLOT(keyDown()), actionCollection(), "down");
- (void)new TDEAction(i18n("Drop Down"), Key_Space, TQT_TQOBJECT(game), TQT_SLOT(keySpace()), actionCollection(), "space");
+ (void)new TDEAction(i18n("Move Left"), Key_Left, game, TQ_SLOT(keyLeft()), actionCollection(), "left");
+ (void)new TDEAction(i18n("Move Right"), Key_Right, game, TQ_SLOT(keyRight()), actionCollection(), "right");
+ (void)new TDEAction(i18n("Rotate Left"), Key_Up, game, TQ_SLOT(keyUp()), actionCollection(), "up");
+ (void)new TDEAction(i18n("Rotate Right"), Key_Down, game, TQ_SLOT(keyDown()), actionCollection(), "down");
+ (void)new TDEAction(i18n("Drop Down"), Key_Space, game, TQ_SLOT(keySpace()), actionCollection(), "space");
game->setFixedSize(default_width, default_height);
adjustSize();