summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/wqlreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kwordquiz/src/wqlreader.cpp')
-rw-r--r--kwordquiz/src/wqlreader.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kwordquiz/src/wqlreader.cpp b/kwordquiz/src/wqlreader.cpp
index 7eef97c7..915fceb9 100644
--- a/kwordquiz/src/wqlreader.cpp
+++ b/kwordquiz/src/wqlreader.cpp
@@ -75,18 +75,18 @@ KWqlDataItemList WqlReader::parse(const TQString &fileName)
while (ts.readLine() != "[Font Info]");
s = ts.readLine();
- int p = s.find("=", 0);
+ int p = s.tqfind("=", 0);
TQString fam = s.right(s.length() - (p + 1));
fam = fam.mid(1, fam.length() - 2);
//g->font().setFamily(s);
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
int ps = s.toInt(0);
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
int b = 0;
if (s == "1")
@@ -95,7 +95,7 @@ KWqlDataItemList WqlReader::parse(const TQString &fileName)
}
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
bool it = (s == "1");
@@ -103,52 +103,52 @@ KWqlDataItemList WqlReader::parse(const TQString &fileName)
while (ts.readLine() != "[Character Info]");
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
m_specialCharacters = s.right(s.length() - (p + 1));
while (ts.readLine() != "[Grid Info]");
ts.readLine(); //skip value for width of row headers
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
m_colWidth1 = s.toInt(0, 10);
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
m_colWidth2 = s.toInt(0, 10);
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
m_numRows = (s.toInt(0, 10) - 1); //We need to reduce by one since the header is not included
// Selection
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
m_topLeft =s.toInt(0, 10) - 1;
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
m_topRight =s.toInt(0, 10) - 1;
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
m_bottomLeft =s.toInt(0, 10) - 1;
s = ts.readLine();
- p = s.find("=", 0);
+ p = s.tqfind("=", 0);
s = s.right(s.length() - (p + 1));
m_bottomRight =s.toInt(0, 10) - 1 ;
while (ts.readLine() != "[Vocabulary]");
s = ts.readLine();
- p = s.find(" [", 0);
+ p = s.tqfind(" [", 0);
s = s.left(p);
s = s.stripWhiteSpace();
m_language1 = s;
@@ -157,7 +157,7 @@ KWqlDataItemList WqlReader::parse(const TQString &fileName)
while (!s.isNull())
{
s = ts.readLine();
- p = s.find("[", 0);
+ p = s.tqfind("[", 0);
TQString r = s.mid(p + 1, 10);
int h = r.toInt(0, 10);
s = s.left(p);