summaryrefslogtreecommitdiffstats
path: root/kmines/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kmines/main.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmines/main.cpp')
-rw-r--r--kmines/main.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmines/main.cpp b/kmines/main.cpp
index 6752e7a5..cead0eab 100644
--- a/kmines/main.cpp
+++ b/kmines/main.cpp
@@ -62,34 +62,34 @@ MainWidget::MainWidget()
{
KNotifyClient::startDaemon();
- _status = new Status(this);
+ _status = new tqStatus(this);
connect(_status, TQT_SIGNAL(gameStateChangedSignal(KMines::GameState)),
TQT_SLOT(gameStateChanged(KMines::GameState)));
connect(_status, TQT_SIGNAL(pause()), TQT_SLOT(pause()));
// Game & Popup
- KStdGameAction::gameNew(_status, TQT_SLOT(restartGame()), actionCollection());
- _pause = KStdGameAction::pause(_status, TQT_SLOT(pauseGame()),
+ KStdGameAction::gameNew(TQT_TQOBJECT(_status), TQT_SLOT(restartGame()), actionCollection());
+ _pause = KStdGameAction::pause(TQT_TQOBJECT(_status), TQT_SLOT(pauseGame()),
actionCollection());
- KStdGameAction::highscores(this, TQT_SLOT(showHighscores()),
+ KStdGameAction::highscores(TQT_TQOBJECT(this), TQT_SLOT(showHighscores()),
actionCollection());
- KStdGameAction::quit(qApp, TQT_SLOT(quit()), actionCollection());
+ KStdGameAction::quit(TQT_TQOBJECT(tqApp), TQT_SLOT(quit()), actionCollection());
// keyboard
_keybCollection = new KActionCollection(this);
for (uint i=0; i<NB_KEYS; i++) {
const KeyData &d = KEY_DATA[i];
- (void)new KAction(i18n(d.label), d.keycode, _status,
+ (void)new KAction(i18n(d.label), d.keycode, TQT_TQOBJECT(_status),
d.slot, _keybCollection, d.name);
}
// Settings
- KStdAction::preferences(this, TQT_SLOT(configureSettings()),
+ KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configureSettings()),
actionCollection());
- KStdAction::keyBindings(this, TQT_SLOT(configureKeys()), actionCollection());
- KStdAction::configureNotifications(this, TQT_SLOT(configureNotifications()),
+ KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(configureKeys()), actionCollection());
+ KStdAction::configureNotifications(TQT_TQOBJECT(this), TQT_SLOT(configureNotifications()),
actionCollection());
- KStdGameAction::configureHighscores(this, TQT_SLOT(configureHighscores()),
+ KStdGameAction::configureHighscores(TQT_TQOBJECT(this), TQT_SLOT(configureHighscores()),
actionCollection());
// Levels
_levels = KStdGameAction::chooseGameType(0, 0, actionCollection());
@@ -97,27 +97,27 @@ MainWidget::MainWidget()
for (uint i=0; i<=Level::NB_TYPES; i++)
list += i18n(Level::LABELS[i]);
_levels->setItems(list);
- connect(_levels, TQT_SIGNAL(activated(int)), _status, TQT_SLOT(newGame(int)));
+ connect(_levels, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(_status), TQT_SLOT(newGame(int)));
// Adviser
_advise =
- KStdGameAction::hint(_status, TQT_SLOT(advise()), actionCollection());
- _solve = KStdGameAction::solve(_status, TQT_SLOT(solve()), actionCollection());
- (void)new KAction(i18n("Solving Rate..."), 0, _status, TQT_SLOT(solveRate()),
+ KStdGameAction::hint(TQT_TQOBJECT(_status), TQT_SLOT(advise()), actionCollection());
+ _solve = KStdGameAction::solve(TQT_TQOBJECT(_status), TQT_SLOT(solve()), actionCollection());
+ (void)new KAction(i18n("Solving Rate..."), 0, TQT_TQOBJECT(_status), TQT_SLOT(solveRate()),
actionCollection(), "solve_rate");
// Log
(void)new KAction(KGuiItem(i18n("View Log"), "viewmag"), 0,
- _status, TQT_SLOT(viewLog()),
+ TQT_TQOBJECT(_status), TQT_SLOT(viewLog()),
actionCollection(), "log_view");
(void)new KAction(KGuiItem(i18n("Replay Log"), "player_play"),
- 0, _status, TQT_SLOT(replayLog()),
+ 0, TQT_TQOBJECT(_status), TQT_SLOT(replayLog()),
actionCollection(), "log_replay");
(void)new KAction(KGuiItem(i18n("Save Log..."), "filesave"), 0,
- _status, TQT_SLOT(saveLog()),
+ TQT_TQOBJECT(_status), TQT_SLOT(saveLog()),
actionCollection(), "log_save");
(void)new KAction(KGuiItem(i18n("Load Log..."), "fileopen"), 0,
- _status, TQT_SLOT(loadLog()),
+ TQT_TQOBJECT(_status), TQT_SLOT(loadLog()),
actionCollection(), "log_load");
setupGUI( KMainWindow::Save | Create );