summaryrefslogtreecommitdiffstats
path: root/kiten/learn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kiten/learn.cpp')
-rw-r--r--kiten/learn.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kiten/learn.cpp b/kiten/learn.cpp
index ecdc011b..63bf5ce0 100644
--- a/kiten/learn.cpp
+++ b/kiten/learn.cpp
@@ -473,8 +473,8 @@ void Learn::add(Dict::Entry toAdd, bool noEmit)
{
// Remove peripheral readings: This is a study mode, not a reference mode
TQRegExp inNames (",\\s*[A-Za-z ]+:.*");
- TQString readings = Dict::prettyKanjiReading(toAdd.readings()).tqreplace(inNames, "");
- TQString meanings = shortenString(Dict::prettyMeaning(toAdd.meanings()).tqreplace(inNames, ""));
+ TQString readings = Dict::prettyKanjiReading(toAdd.readings()).replace(inNames, "");
+ TQString meanings = shortenString(Dict::prettyMeaning(toAdd.meanings()).replace(inNames, ""));
TQString kanji = toAdd.kanji();
// here's a dirty rotten cheat (well, not really)
@@ -730,7 +730,7 @@ TQString Learn::randomMeaning(TQStringList &oldMeanings)
}
//kdDebug() << "curMeaning: " << curItem->text(guessOn) << endl;
}
- while (oldMeanings.tqcontains(meaning) || meaning == curItem->text(guessOn));
+ while (oldMeanings.contains(meaning) || meaning == curItem->text(guessOn));
oldMeanings.append(meaning);
meaning = shortenString(meaning);
@@ -755,9 +755,9 @@ void Learn::qupdate()
TQStringList oldMeanings;
for (int i = 0; i < numberOfAnswers; ++i)
- answers->tqfind(i)->setText(randomMeaning(oldMeanings));
+ answers->find(i)->setText(randomMeaning(oldMeanings));
- answers->tqfind(seikai)->setText(curItem->text(guessOn));
+ answers->find(seikai)->setText(curItem->text(guessOn));
}
struct Learn::scoreCompare
@@ -834,7 +834,7 @@ void Learn::qnew() // new quiz kanji
void Learn::cheat()
{
- answers->tqfind(seikai)->setFocus();
+ answers->find(seikai)->setFocus();
statusBar()->message(i18n("Better luck next time"));
nogood = true;
}