From c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jan 2024 12:28:49 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- knetwalk/src/mainwindow.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'knetwalk') 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("

Rules of the Game

" @@ -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); -- cgit v1.2.1