summaryrefslogtreecommitdiffstats
path: root/kmahjongg/BoardLayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmahjongg/BoardLayout.cpp')
-rw-r--r--kmahjongg/BoardLayout.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kmahjongg/BoardLayout.cpp b/kmahjongg/BoardLayout.cpp
index 56659611..8da404ae 100644
--- a/kmahjongg/BoardLayout.cpp
+++ b/kmahjongg/BoardLayout.cpp
@@ -1,8 +1,8 @@
#include "BoardLayout.h"
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qtextcodec.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqtextcodec.h>
@@ -23,13 +23,13 @@ void BoardLayout::clearBoardLayout() {
initialiseBoard();
}
-bool BoardLayout::saveBoardLayout(const QString where) {
- QFile f(where);
+bool BoardLayout::saveBoardLayout(const TQString where) {
+ TQFile f(where);
if (!f.open(IO_ReadWrite)) {
return false;
}
- QCString tmp = layoutMagic1_0.utf8();
+ TQCString tmp = layoutMagic1_0.utf8();
if (f.writeBlock(tmp, tmp.length()) == -1) {
return(false);
}
@@ -56,20 +56,20 @@ bool BoardLayout::saveBoardLayout(const QString where) {
}
-bool BoardLayout::loadBoardLayout(const QString from)
+bool BoardLayout::loadBoardLayout(const TQString from)
{
if (from == filename) {
return true;
}
- QFile f(from);
- QString all = "";
+ TQFile f(from);
+ TQString all = "";
if ( f.open(IO_ReadOnly) ) {
- QTextStream t( &f );
- t.setCodec(QTextCodec::codecForName("UTF-8"));
- QString s;
+ TQTextStream t( &f );
+ t.setCodec(TQTextCodec::codecForName("UTF-8"));
+ TQString s;
s = t.readLine();
if (s != layoutMagic1_0) {
f.close();