summaryrefslogtreecommitdiffstats
path: root/ksokoban/Bookmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksokoban/Bookmark.cpp')
-rw-r--r--ksokoban/Bookmark.cpp12
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());