summaryrefslogtreecommitdiffstats
path: root/ksokoban/LevelCollection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksokoban/LevelCollection.cpp')
-rw-r--r--ksokoban/LevelCollection.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksokoban/LevelCollection.cpp b/ksokoban/LevelCollection.cpp
index 7f5db852..a562fb35 100644
--- a/ksokoban/LevelCollection.cpp
+++ b/ksokoban/LevelCollection.cpp
@@ -2,7 +2,7 @@
#include "Map.h"
-#include <qfile.h>
+#include <tqfile.h>
#include <stdio.h>
#include <assert.h>
@@ -146,7 +146,7 @@ LevelCollection::loadPrefs() {
KConfig *cfg=(KApplication::kApplication())->config();
cfg->setGroup("settings");
- QString key;
+ TQString key;
key.sprintf("level%d", id_);
level_ = cfg->readNumEntry(key, 0);
@@ -199,7 +199,7 @@ LevelCollection::addSeparator() {
}
LevelCollection::LevelCollection(const char *_def, int _len,
- const QString &_name, int _id) :
+ const TQString &_name, int _id) :
level_(0), completedLevels_(0), noOfLevels_(0),
name_(_name), id_(_id) {
@@ -213,7 +213,7 @@ LevelCollection::LevelCollection(const char *_def, int _len,
loadPrefs();
}
-LevelCollection::LevelCollection(const QString &_path, const QString &_name,
+LevelCollection::LevelCollection(const TQString &_path, const TQString &_name,
int _id) :
level_(0), completedLevels_(0), noOfLevels_(0),
name_(_name), path_(_path), id_(_id) {
@@ -221,7 +221,7 @@ LevelCollection::LevelCollection(const QString &_path, const QString &_name,
char buf[1024];
int len;
- QFile file(path_);
+ TQFile file(path_);
if (file.open(IO_Raw | IO_ReadOnly)) {
while ((len = file.readBlock(buf, 1024)) > 0) {
addData((const char *) buf, len);
@@ -243,7 +243,7 @@ LevelCollection::~LevelCollection() {
KConfig *cfg=(KApplication::kApplication())->config();
cfg->setGroup ("settings");
- QString key;
+ TQString key;
key.sprintf("level%d", id_);
cfg->writeEntry(key, level_, true, false, false);
}
@@ -268,7 +268,7 @@ LevelCollection::levelCompleted() {
x = forward(x, 0xd4d657b4ul, 0x1ful, 0x7e129575ul);
x = forward(x, 0x80ff0b94ul, 0x0eul, 0x92fc153dul);
- QString key;
+ TQString key;
key.sprintf("status%d", id_);
KConfig *cfg=(KApplication::kApplication())->config();