summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/wqquiz.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitd8762de95349dc6edaa34db9bf699b367c1af6b1 (patch)
tree8c76a6ab8e4e92d13196cb11ddab2d0fb64ec680 /kwordquiz/src/wqquiz.cpp
parent03458c4e2ca2e92deafe078d0e09e1acd4c4765f (diff)
downloadtdeedu-d8762de95349dc6edaa34db9bf699b367c1af6b1.tar.gz
tdeedu-d8762de95349dc6edaa34db9bf699b367c1af6b1.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwordquiz/src/wqquiz.cpp')
-rw-r--r--kwordquiz/src/wqquiz.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kwordquiz/src/wqquiz.cpp b/kwordquiz/src/wqquiz.cpp
index db4c716c..f780562d 100644
--- a/kwordquiz/src/wqquiz.cpp
+++ b/kwordquiz/src/wqquiz.cpp
@@ -239,12 +239,12 @@ bool WQQuiz::checkAnswer(int i, const TQString & a)
if (TQString(m_correctBlank).length() > 0)
{
TQStringList la, ls;
- if (ans.tqfind(";") > 0)
+ if (ans.find(";") > 0)
ls = TQStringList::split(";", ans);
else
ls.append(ans);
- if (m_correctBlank.tqfind(";") > 0)
+ if (m_correctBlank.find(";") > 0)
la = TQStringList::split(";", m_correctBlank);
else
la.append(m_correctBlank);
@@ -377,17 +377,17 @@ TQString WQQuiz::yourAnswer(int i, const TQString & s)
{
TQStringList ls;
- if (s.tqfind(";") > 0)
+ if (s.find(";") > 0)
ls = TQStringList::split(";", s, true);
else
ls.append(s);
- result = m_answerBlank.tqreplace("..........", "<u></u>");
+ result = m_answerBlank.replace("..........", "<u></u>");
int offset = 0, counter = 0;
while (offset >= 0)
{
- offset = result.tqfind("<u>", offset);
+ offset = result.find("<u>", offset);
if (offset >= 0)
{
result.insert(offset + 3, ls[counter]);
@@ -474,7 +474,7 @@ TQString WQQuiz::blankAnswer(int i)
rx.setMinimal(true);
rx.setPattern("\\[.*\\]");
- r.tqreplace(rx, "..........");
+ r.replace(rx, "..........");
if (r != tTemp)
{
@@ -486,9 +486,9 @@ TQString WQQuiz::blankAnswer(int i)
if (offset >= 0)
{
if (m_correctBlank.length() > 0)
- m_correctBlank = m_correctBlank + ";" + " " + tTemp.mid(offset + 1, tTemp.tqfind(']', offset) - offset - 1);
+ m_correctBlank = m_correctBlank + ";" + " " + tTemp.mid(offset + 1, tTemp.find(']', offset) - offset - 1);
else
- m_correctBlank = tTemp.mid(offset + 1, tTemp.tqfind(']', offset) - offset - 1);
+ m_correctBlank = tTemp.mid(offset + 1, tTemp.find(']', offset) - offset - 1);
offset++;
}
}
@@ -517,8 +517,8 @@ TQString WQQuiz::answer(int i)
s = m_table->text(li.oneOp(), j);
if (Prefs::enableBlanks())
{
- s.tqreplace("[", "<u>");
- s.tqreplace("]", "</u>");
+ s.replace("[", "<u>");
+ s.replace("]", "</u>");
s.prepend("<qt>");
s.append("</qt>");
}