summaryrefslogtreecommitdiffstats
path: root/knetwalk
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-01-20 18:26:21 +0900
committerMichele Calgaro <[email protected]>2025-01-27 11:03:54 +0900
commitbd4ee3ccc15d0776614a8435850a2eb1faf5a71f (patch)
treec2ce8973a25d1e56e92a5a0b179693ed1f4f42ad /knetwalk
parent3191f81874fcfdd0466f6f42beb89da6245b1a0a (diff)
downloadtdegames-bd4ee3ccc15d0776614a8435850a2eb1faf5a71f.tar.gz
tdegames-bd4ee3ccc15d0776614a8435850a2eb1faf5a71f.zip
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'knetwalk')
-rw-r--r--knetwalk/src/highscores.cpp2
-rw-r--r--knetwalk/src/mainwindow.cpp8
2 files changed, 5 insertions, 5 deletions
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);
}