diff options
Diffstat (limited to 'ksokoban/MainWindow.cpp')
-rw-r--r-- | ksokoban/MainWindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ksokoban/MainWindow.cpp b/ksokoban/MainWindow.cpp index d65073f6..cae4b8af 100644 --- a/ksokoban/MainWindow.cpp +++ b/ksokoban/MainWindow.cpp @@ -57,7 +57,7 @@ MainWindow::createCollectionMenu() { } checkedCollection_ = 0; - KConfig *cfg=(KApplication::kApplication())->config(); + KConfig *cfg=(TDEApplication::kApplication())->config(); cfg->setGroup("settings"); int id = cfg->readNumEntry("collection", 10); @@ -76,7 +76,7 @@ MainWindow::MainWindow() : KMainWindow(0), externalCollection_(0) { setEraseColor(TQColor(0,0,0)); - KConfig *cfg=(KApplication::kApplication())->config(); + KConfig *cfg=(TDEApplication::kApplication())->config(); cfg->setGroup("Geometry"); int width = cfg->readNumEntry("width", 750); int height = cfg->readNumEntry("height", 562); @@ -107,7 +107,7 @@ MainWindow::MainWindow() : KMainWindow(0), externalCollection_(0) { game_->insertItem(TQIconSet(pixmap), i18n("&Redo"), playField_, TQT_SLOT(redo()), TQKeySequence( (KStdAccel::redo()).toString())); game_->insertSeparator(); pixmap = SmallIcon("exit"); - game_->insertItem(TQIconSet(pixmap), i18n("&Quit"), KApplication::kApplication(), TQT_SLOT(closeAllWindows()), TQKeySequence( (KStdAccel::quit()).toString())); + game_->insertItem(TQIconSet(pixmap), i18n("&Quit"), TDEApplication::kApplication(), TQT_SLOT(closeAllWindows()), TQKeySequence( (KStdAccel::quit()).toString())); menu_->insertItem(i18n("&Game"), game_); animation_ = new TQPopupMenu(0,"animation menu"); @@ -190,7 +190,7 @@ MainWindow::MainWindow() : KMainWindow(0), externalCollection_(0) { MainWindow::~MainWindow() { - KConfig *cfg=(KApplication::kApplication())->config(); + KConfig *cfg=(TDEApplication::kApplication())->config(); cfg->setGroup("Geometry"); cfg->writeEntry("width", width()); @@ -297,7 +297,7 @@ MainWindow::changeCollection(int id) void MainWindow::loadLevels() { - KConfig *cfg=(KApplication::kApplication())->config(); + KConfig *cfg=(TDEApplication::kApplication())->config(); cfg->setGroup("settings"); TQString lastFile = cfg->readPathEntry("lastLevelFile"); @@ -309,7 +309,7 @@ MainWindow::loadLevels() { void MainWindow::openURL(KURL _url) { - KConfig *cfg=(KApplication::kApplication())->config(); + KConfig *cfg=(TDEApplication::kApplication())->config(); // int namepos = _url.path().findRev('/') + 1; // NOTE: findRev can return -1 // TQString levelName = _url.path().mid(namepos); |