summaryrefslogtreecommitdiffstats
path: root/ksokoban/MainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksokoban/MainWindow.cpp')
-rw-r--r--ksokoban/MainWindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksokoban/MainWindow.cpp b/ksokoban/MainWindow.cpp
index cae4b8af..5c19e5e1 100644
--- a/ksokoban/MainWindow.cpp
+++ b/ksokoban/MainWindow.cpp
@@ -57,7 +57,7 @@ MainWindow::createCollectionMenu() {
}
checkedCollection_ = 0;
- KConfig *cfg=(TDEApplication::kApplication())->config();
+ TDEConfig *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=(TDEApplication::kApplication())->config();
+ TDEConfig *cfg=(TDEApplication::kApplication())->config();
cfg->setGroup("Geometry");
int width = cfg->readNumEntry("width", 750);
int height = cfg->readNumEntry("height", 562);
@@ -190,7 +190,7 @@ MainWindow::MainWindow() : KMainWindow(0), externalCollection_(0) {
MainWindow::~MainWindow()
{
- KConfig *cfg=(TDEApplication::kApplication())->config();
+ TDEConfig *cfg=(TDEApplication::kApplication())->config();
cfg->setGroup("Geometry");
cfg->writeEntry("width", width());
@@ -297,7 +297,7 @@ MainWindow::changeCollection(int id)
void
MainWindow::loadLevels() {
- KConfig *cfg=(TDEApplication::kApplication())->config();
+ TDEConfig *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=(TDEApplication::kApplication())->config();
+ TDEConfig *cfg=(TDEApplication::kApplication())->config();
// int namepos = _url.path().findRev('/') + 1; // NOTE: findRev can return -1
// TQString levelName = _url.path().mid(namepos);
@@ -320,12 +320,12 @@ MainWindow::openURL(KURL _url) {
levelFile = _url.path();
} else {
// levelFile = locateLocal("appdata", "levels/" + levelName);
- if(!KIO::NetAccess::download( _url, levelFile ) )
+ if(!TDEIO::NetAccess::download( _url, levelFile ) )
return;
}
LevelCollection *tmpCollection = new LevelCollection(levelFile, levelName);
- KIO::NetAccess::removeTempFile(levelFile );
+ TDEIO::NetAccess::removeTempFile(levelFile );
if (tmpCollection->noOfLevels() < 1) {
KMessageBox::sorry(this, i18n("No levels found in file"));