diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /ksokoban/LevelCollection.cpp | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksokoban/LevelCollection.cpp')
-rw-r--r-- | ksokoban/LevelCollection.cpp | 14 |
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(); |