summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/wqquiz.cpp
diff options
context:
space:
mode:
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>");
}