summaryrefslogtreecommitdiffstats
path: root/kiten/kiten.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
commit98a12d05a48814bec3870b9a6d5865475cfa1c95 (patch)
treea711801e47696fb0cf162abd7330e0b5b480ba39 /kiten/kiten.cpp
parent421a1845137c7c396b5d03bce53237fcb149d602 (diff)
downloadtdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.tar.gz
tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1211429 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kiten/kiten.cpp')
-rw-r--r--kiten/kiten.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kiten/kiten.cpp b/kiten/kiten.cpp
index 5e54a9af..7dd11934 100644
--- a/kiten/kiten.cpp
+++ b/kiten/kiten.cpp
@@ -257,7 +257,7 @@ void TopLevel::handleSearchResult(Dict::SearchResult results)
addAction->setEnabled(true);
- _ResultView->append(TQString("<p>%1</p>").arg(i18n("HTML Entity: %1").arg(TQString("&amp;#x%1;").arg(TQString::number(toAddKanji.kanji().at(0).unicode(), 16))))); // show html entity
+ _ResultView->append(TQString("<p>%1</p>").arg(i18n("HTML Entity: %1").arg(TQString("&amp;#x%1;").arg(TQString::number(toAddKanji.kanji().at(0).tqunicode(), 16))))); // show html entity
// now show some compounds in which this kanji appears
TQString kanji = toAddKanji.kanji();
@@ -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.contains(*it) > 0)
+ if (done.tqcontains(*it) > 0)
continue;
//kdDebug() << "currently on deinflection " << *it << endl;
@@ -711,8 +711,8 @@ TQRegExp TopLevel::searchItems()
if (text.isEmpty())
return TQRegExp(); //empty
- unsigned int contains = text.contains(TQRegExp("[A-Za-z0-9_:]"));
- if (Config::wholeWord() && contains == text.length())
+ unsigned int tqcontains = text.tqcontains(TQRegExp("[A-Za-z0-9_:]"));
+ if (Config::wholeWord() && tqcontains == text.length())
regexp = "\\W%1\\W";
else
regexp = "%1";