diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | d8762de95349dc6edaa34db9bf699b367c1af6b1 (patch) | |
tree | 8c76a6ab8e4e92d13196cb11ddab2d0fb64ec680 /kiten/learn.cpp | |
parent | 03458c4e2ca2e92deafe078d0e09e1acd4c4765f (diff) | |
download | tdeedu-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 'kiten/learn.cpp')
-rw-r--r-- | kiten/learn.cpp | 12 |
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; } |