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 --- ksokoban/LevelCollection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ksokoban/LevelCollection.cpp') 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(); -- cgit v1.2.3