summaryrefslogtreecommitdiffstats
path: root/knetwalk
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 12:28:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 12:28:49 +0900
commitc20f4d8f2cf03c69fcecc80d63fe3cbb80f51610 (patch)
tree50b08262da538c5b91f77e83e4b80d7fd6dbe0de /knetwalk
parent51f65427771c47f6d34cda56b07d9d82bd0bfd33 (diff)
downloadtdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.tar.gz
tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'knetwalk')
-rw-r--r--knetwalk/src/mainwindow.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/knetwalk/src/mainwindow.cpp b/knetwalk/src/mainwindow.cpp
index 7abf5c77..43471aa8 100644
--- a/knetwalk/src/mainwindow.cpp
+++ b/knetwalk/src/mainwindow.cpp
@@ -64,11 +64,11 @@ MainWindow::MainWindow(TQWidget *parent, const char* name, WFlags /*fl*/) :
KNotifyClient::startDaemon();
- KStdGameAction::gameNew(this, TQT_SLOT(slotNewGame()), actionCollection());
+ KStdGameAction::gameNew(this, TQ_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(this, TQ_SLOT(showHighscores()), actionCollection());
+ KStdGameAction::quit(this, TQ_SLOT(close()), actionCollection());
+ KStdGameAction::configureHighscores(this, TQ_SLOT(configureHighscores()), actionCollection());
m_levels = KStdGameAction::chooseGameType(0, 0, actionCollection());
TQStringList lst;
@@ -83,7 +83,7 @@ MainWindow::MainWindow(TQWidget *parent, const char* name, WFlags /*fl*/) :
statusBar()->insertItem("abcdefghijklmnopqrst: 0 ",1);
setAutoSaveSettings();
createGUI();
- connect(m_levels, TQT_SIGNAL(activated(int)), this, TQT_SLOT(newGame(int)));
+ connect(m_levels, TQ_SIGNAL(activated(int)), this, TQ_SLOT(newGame(int)));
TQWhatsThis::add(this, i18n("<h3>Rules of the Game</h3>"
@@ -108,9 +108,9 @@ MainWindow::MainWindow(TQWidget *parent, const char* name, WFlags /*fl*/) :
{
board[i] = new Cell(grid, i);
board[i]->setFixedSize(cellsize, cellsize);
- connect(board[i], TQT_SIGNAL(lClicked(int)), TQT_SLOT(lClicked(int)));
- connect(board[i], TQT_SIGNAL(rClicked(int)), TQT_SLOT(rClicked(int)));
- connect(board[i], TQT_SIGNAL(mClicked(int)), TQT_SLOT(mClicked(int)));
+ connect(board[i], TQ_SIGNAL(lClicked(int)), TQ_SLOT(lClicked(int)));
+ connect(board[i], TQ_SIGNAL(rClicked(int)), TQ_SLOT(rClicked(int)));
+ connect(board[i], TQ_SIGNAL(mClicked(int)), TQ_SLOT(mClicked(int)));
}
srand(time(0));
@@ -360,7 +360,7 @@ void MainWindow::rotate(int index, bool toleft)
for(int i = 0; i < 14; i++)
{
kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput);
- TQTimer::singleShot(20, board[index], TQT_SLOT(update()));
+ TQTimer::singleShot(20, board[index], TQ_SLOT(update()));
kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::WaitForMore);
board[index]->rotate(toleft ? -6 : 6);
}
@@ -389,7 +389,7 @@ void MainWindow::blink(int index)
for(int i = 0; i < board[index]->width() * 2; i += 2)
{
kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput);
- TQTimer::singleShot(20, board[index], TQT_SLOT(update()));
+ TQTimer::singleShot(20, board[index], TQ_SLOT(update()));
kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput |
TQEventLoop::WaitForMore);
board[index]->setLight(i);