summaryrefslogtreecommitdiffstats
path: root/kmahjongg/BoardLayout.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kmahjongg/BoardLayout.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-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 '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();