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/Bookmark.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/Bookmark.cpp')
-rw-r--r-- | ksokoban/Bookmark.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ksokoban/Bookmark.cpp b/ksokoban/Bookmark.cpp index 796d54b6..5571b7aa 100644 --- a/ksokoban/Bookmark.cpp +++ b/ksokoban/Bookmark.cpp @@ -21,7 +21,7 @@ #include "History.h" #include "LevelMap.h" -#include <qfile.h> +#include <tqfile.h> #include <kapplication.h> @@ -37,10 +37,10 @@ #include <assert.h> void -Bookmark::fileName(QString &p) { +Bookmark::fileName(TQString &p) { p = KGlobal::dirs()->saveLocation("appdata"); - QString n; + TQString n; n.setNum(number_); p += "/bookmark" + n; } @@ -48,7 +48,7 @@ Bookmark::fileName(QString &p) { Bookmark::Bookmark(int _num) : number_(_num), collection_(-1), level_(-1), moves_(0), data_("") { - QString p; + TQString p; fileName(p); FILE *file = fopen(p.latin1(), "r"); @@ -91,9 +91,9 @@ Bookmark::set(int _collection, int _level, int _moves, History *_h) { data_ = ""; _h->save(data_); - QString p; + TQString p; fileName(p); - FILE *file = fopen(QFile::encodeName(p), "w"); + FILE *file = fopen(TQFile::encodeName(p), "w"); if (file == NULL) return; fprintf(file, "%d %d %d\n", collection_, level_, moves_); fprintf(file, "%s\n", data_.latin1()); |