From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksokoban/Bookmark.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ksokoban/Bookmark.cpp') 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 +#include #include @@ -37,10 +37,10 @@ #include 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()); -- cgit v1.2.1