diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-20 18:26:21 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-27 11:03:54 +0900 |
commit | bd4ee3ccc15d0776614a8435850a2eb1faf5a71f (patch) | |
tree | c2ce8973a25d1e56e92a5a0b179693ed1f4f42ad /ksokoban/LevelCollection.cpp | |
parent | 3191f81874fcfdd0466f6f42beb89da6245b1a0a (diff) | |
download | tdegames-bd4ee3ccc15d0776614a8435850a2eb1faf5a71f.tar.gz tdegames-bd4ee3ccc15d0776614a8435850a2eb1faf5a71f.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ksokoban/LevelCollection.cpp')
-rw-r--r-- | ksokoban/LevelCollection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ksokoban/LevelCollection.cpp b/ksokoban/LevelCollection.cpp index 300ba068..ec85c885 100644 --- a/ksokoban/LevelCollection.cpp +++ b/ksokoban/LevelCollection.cpp @@ -143,7 +143,7 @@ LevelCollection::indexTextCollection() { void LevelCollection::loadPrefs() { if (id_ >= 0) { - TDEConfig *cfg=(TDEApplication::kApplication())->config(); + TDEConfig *cfg=tdeApp->config(); cfg->setGroup("settings"); TQString key; @@ -240,7 +240,7 @@ LevelCollection::LevelCollection(const TQString &_path, const TQString &_name, LevelCollection::~LevelCollection() { if (id_ >= 0) { - TDEConfig *cfg=(TDEApplication::kApplication())->config(); + TDEConfig *cfg=tdeApp->config(); cfg->setGroup ("settings"); TQString key; @@ -271,7 +271,7 @@ LevelCollection::levelCompleted() { TQString key; key.sprintf("status%d", id_); - TDEConfig *cfg=(TDEApplication::kApplication())->config(); + TDEConfig *cfg=tdeApp->config(); cfg->setGroup("settings"); cfg->writeEntry(key, x, true, false, false); cfg->sync(); |