From bd4ee3ccc15d0776614a8435850a2eb1faf5a71f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 20 Jan 2025 18:26:21 +0900 Subject: Use tdeApp Signed-off-by: Michele Calgaro --- knetwalk/src/highscores.cpp | 2 +- knetwalk/src/mainwindow.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'knetwalk') diff --git a/knetwalk/src/highscores.cpp b/knetwalk/src/highscores.cpp index a3ef3f3c..adc9a7d3 100644 --- a/knetwalk/src/highscores.cpp +++ b/knetwalk/src/highscores.cpp @@ -63,7 +63,7 @@ namespace KExtHighscore default: Q_ASSERT(false); } - TDEConfigGroupSaver cg(kapp->config(), group); + TDEConfigGroupSaver cg(tdeApp->config(), group); TQString name = cg.config()->readEntry("Name", TQString()); if ( name.isNull() ) return; if ( name.isEmpty() ) name = i18n("anonymous"); diff --git a/knetwalk/src/mainwindow.cpp b/knetwalk/src/mainwindow.cpp index 43471aa8..1806a248 100644 --- a/knetwalk/src/mainwindow.cpp +++ b/knetwalk/src/mainwindow.cpp @@ -359,9 +359,9 @@ void MainWindow::rotate(int index, bool toleft) updateConnections(); for(int i = 0; i < 14; i++) { - kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput); + tdeApp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput); TQTimer::singleShot(20, board[index], TQ_SLOT(update())); - kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::WaitForMore); + tdeApp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::WaitForMore); board[index]->rotate(toleft ? -6 : 6); } @@ -388,9 +388,9 @@ void MainWindow::blink(int index) { for(int i = 0; i < board[index]->width() * 2; i += 2) { - kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput); + tdeApp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput); TQTimer::singleShot(20, board[index], TQ_SLOT(update())); - kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput | + tdeApp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::WaitForMore); board[index]->setLight(i); } -- cgit v1.2.1