diff options
author | Timothy Pearson <[email protected]> | 2013-01-20 00:19:04 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-20 00:19:04 -0600 |
commit | 2e384e286e5ec2f884ceab9a360f90f544554066 (patch) | |
tree | 44e1defd7efd7f8f09d446992685d167ec546e5f /ksokoban/MainWindow.cpp | |
parent | 4ffd16a310c74db19a5ba0c297234470f01cd7b3 (diff) | |
download | tdegames-2e384e286e5ec2f884ceab9a360f90f544554066.tar.gz tdegames-2e384e286e5ec2f884ceab9a360f90f544554066.zip |
Rename KApplication to TDEApplication to avoid conflicts with KDE4
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); |