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/rad.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/rad.cpp')
-rw-r--r-- | kiten/rad.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kiten/rad.cpp b/kiten/rad.cpp index 1f7da303..e8320b98 100644 --- a/kiten/rad.cpp +++ b/kiten/rad.cpp @@ -174,11 +174,11 @@ TQStringList Rad::kanjiByRad(const TQStringList &list) for (TQValueList<TQStringList>::Iterator it = lists.begin(); it != lists.end(); ++it) { //kdDebug() << "looping through lists\n"; - outcomes.append((*it).tqcontains(*kit) > 0); + outcomes.append((*it).contains(*kit) > 0); } const bool containsBool = false; - if ((outcomes.tqcontains(containsBool) < 1)) + if ((outcomes.contains(containsBool) < 1)) { //kdDebug() << "appending " << *kit << endl; ret.append(*kit); @@ -198,7 +198,7 @@ Radical Rad::radByKanji(const TQString &text) TQString ret; TQValueListIterator<Radical> it; - for (it = list.end(); it != list.begin() && (*it).kanji().tqfind(text) == -1; --it); + for (it = list.end(); it != list.begin() && (*it).kanji().find(text) == -1; --it); return (*it); } @@ -360,7 +360,7 @@ void RadWidget::addRadical(const TQString &radical) void RadWidget::addToSelected(const TQString &text) { - if (!text.isNull() && !selected.tqcontains(text)) + if (!text.isNull() && !selected.contains(text)) { selectedList->insertItem(text); selected.append(text); @@ -398,7 +398,7 @@ void RadWidget::apply() for (TQStringList::Iterator it = selected.begin(); it != selected.end(); ++it) { - if (hotlist.tqfind(*it) == hotlist.end()) + if (hotlist.find(*it) == hotlist.end()) { if (hotlist.size() >= hotlistNum) hotlist.pop_front(); // stupid stl functions in TQt .. ;) |