summaryrefslogtreecommitdiffstats
path: root/knetwalk/src/mainwindow.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 /knetwalk/src/mainwindow.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 'knetwalk/src/mainwindow.cpp')
-rw-r--r--knetwalk/src/mainwindow.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/knetwalk/src/mainwindow.cpp b/knetwalk/src/mainwindow.cpp
index 17fa9b82..21de29c0 100644
--- a/knetwalk/src/mainwindow.cpp
+++ b/knetwalk/src/mainwindow.cpp
@@ -52,8 +52,8 @@
static TQMap<Cell::Dirs, Cell::Dirs> contrdirs;
-MainWindow::MainWindow(TQWidget *parent, const char* name, WFlags /*fl*/) :
- KMainWindow(parent, name, WStyle_NoBorder)
+MainWindow::MainWindow(TQWidget *tqparent, const char* name, WFlags /*fl*/) :
+ KMainWindow(tqparent, name, WStyle_NoBorder)
{
m_clickcount = 0;
@@ -64,11 +64,11 @@ MainWindow::MainWindow(TQWidget *parent, const char* name, WFlags /*fl*/) :
KNotifyClient::startDaemon();
- KStdGameAction::gameNew(this, TQT_SLOT(slotNewGame()), actionCollection());
+ KStdGameAction::gameNew(TQT_TQOBJECT(this), TQT_SLOT(slotNewGame()), actionCollection());
- KStdGameAction::highscores(this, TQT_SLOT(showHighscores()), actionCollection());
- KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection());
- KStdGameAction::configureHighscores(this, TQT_SLOT(configureHighscores()), actionCollection());
+ KStdGameAction::highscores(TQT_TQOBJECT(this), TQT_SLOT(showHighscores()), actionCollection());
+ KStdGameAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
+ KStdGameAction::configureHighscores(TQT_TQOBJECT(this), TQT_SLOT(configureHighscores()), actionCollection());
m_levels = KStdGameAction::chooseGameType(0, 0, actionCollection());
TQStringList lst;
@@ -78,7 +78,7 @@ MainWindow::MainWindow(TQWidget *parent, const char* name, WFlags /*fl*/) :
lst += i18n("Master");
m_levels->setItems(lst);
- setFixedSize(minimumSizeHint());
+ setFixedSize(tqminimumSizeHint());
statusBar()->insertItem("abcdefghijklmnopqrst: 0 ",1);
setAutoSaveSettings();
@@ -149,7 +149,7 @@ void MainWindow::newGame(int sk)
m_clickcount = 0;
TQString clicks = i18n("Click: %1");
- statusBar()->changeItem(clicks.arg(TQString::number(m_clickcount)),1);
+ statusBar()->changeItem(clicks.tqarg(TQString::number(m_clickcount)),1);
KNotifyClient::event(winId(), "startsound", i18n("New Game"));
for(int i = 0; i < MasterBoardSize * MasterBoardSize; i++)
@@ -370,7 +370,7 @@ void MainWindow::rotate(int index, bool toleft)
m_clickcount++;
TQString clicks = i18n("Click: %1");
- statusBar()->changeItem(clicks.arg(TQString::number(m_clickcount)),1);
+ statusBar()->changeItem(clicks.tqarg(TQString::number(m_clickcount)),1);
if (isGameOver())
{