summaryrefslogtreecommitdiffstats
path: root/kiten/kiten.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 /kiten/kiten.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 'kiten/kiten.cpp')
-rw-r--r--kiten/kiten.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kiten/kiten.cpp b/kiten/kiten.cpp
index beb56a31..765a1ddd 100644
--- a/kiten/kiten.cpp
+++ b/kiten/kiten.cpp
@@ -80,8 +80,8 @@ TopLevel::TopLevel(TQWidget *tqparent, const char *name) : KMainWindow(tqparent,
kanjiCB = new KToggleAction(i18n("&Kanjidic"), "kanjidic", CTRL+Key_K, TQT_TQOBJECT(this), TQT_SLOT(kanjiDictChange()), actionCollection(), "kanji_toggle");
deinfCB = new KToggleAction(i18n("&Deinflect Verbs in Regular Search"), 0, TQT_TQOBJECT(this), TQT_SLOT(kanjiDictChange()), actionCollection(), "deinf_toggle");
comCB = new KToggleAction(i18n("&Filter Rare"), "filter", CTRL+Key_F, TQT_TQOBJECT(this), TQT_SLOT(toggleCom()), actionCollection(), "common");
- autoSearchToggle = new KToggleAction(i18n("&Automatically Search Clipboard Selections"), "tqfind", 0, TQT_TQOBJECT(this), TQT_SLOT(kanjiDictChange()), actionCollection(), "autosearch_toggle");
- irAction = new KAction(i18n("Search &in Results"), "tqfind", CTRL+Key_I, TQT_TQOBJECT(this), TQT_SLOT(resultSearch()), actionCollection(), "search_in_results");
+ autoSearchToggle = new KToggleAction(i18n("&Automatically Search Clipboard Selections"), "find", 0, TQT_TQOBJECT(this), TQT_SLOT(kanjiDictChange()), actionCollection(), "autosearch_toggle");
+ irAction = new KAction(i18n("Search &in Results"), "find", CTRL+Key_I, TQT_TQOBJECT(this), TQT_SLOT(resultSearch()), actionCollection(), "search_in_results");
(void) KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolBars()), actionCollection());
addAction = new KAction(i18n("Add &Kanji to Learning List"), 0, TQT_TQOBJECT(this), TQT_SLOT(addToList()), actionCollection(), "add");
addAction->setEnabled(false);
@@ -396,7 +396,7 @@ void TopLevel::search(bool inResults)
TQStringList::Iterator nit = names.begin();
for (TQStringList::Iterator it = res.begin(); it != res.end(); ++it, ++nit)
{
- if (done.tqcontains(*it) > 0)
+ if (done.contains(*it) > 0)
continue;
//kdDebug() << "currently on deinflection " << *it << endl;
@@ -442,7 +442,7 @@ void TopLevel::strokeSearch()
if (!ok)
{
/*
- if (text.tqfind("-") < 0)
+ if (text.find("-") < 0)
{
StatusBar->message(i18n("For a range between 4 and 8 strokes, use '4-8'"));
return;
@@ -540,7 +540,7 @@ TQString TopLevel::filteredClipboardText()
{
TQString newText = clipBoardText();
TQString currentText = Edit->text();
- if (newText.length() < 80 && newText.tqfind(':') < 0 && newText.tqfind('#') < 0 && newText.tqfind("-") != 0 && newText.tqfind("+") < 0 && currentText.tqfind(newText) < 0)
+ if (newText.length() < 80 && newText.find(':') < 0 && newText.find('#') < 0 && newText.find("-") != 0 && newText.find("+") < 0 && currentText.find(newText) < 0)
return newText;
else
return TQString();
@@ -711,8 +711,8 @@ TQRegExp TopLevel::searchItems()
if (text.isEmpty())
return TQRegExp(); //empty
- unsigned int tqcontains = text.tqcontains(TQRegExp("[A-Za-z0-9_:]"));
- if (Config::wholeWord() && tqcontains == text.length())
+ unsigned int contains = text.contains(TQRegExp("[A-Za-z0-9_:]"));
+ if (Config::wholeWord() && contains == text.length())
regexp = "\\W%1\\W";
else
regexp = "%1";