summaryrefslogtreecommitdiffstats
path: root/kiten/dict.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:47:17 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:47:17 -0600
commit6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3 (patch)
treecc90a09df2d1fd6d956cc084529a62d354316ad3 /kiten/dict.cpp
parent174fd5e23c68598774706ea9b571d3d178e36b81 (diff)
downloadtdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.tar.gz
tdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kiten/dict.cpp')
-rw-r--r--kiten/dict.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kiten/dict.cpp b/kiten/dict.cpp
index 90af2878..723e4c13 100644
--- a/kiten/dict.cpp
+++ b/kiten/dict.cpp
@@ -26,7 +26,7 @@
#include <tqfileinfo.h>
#include <tqregexp.h>
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include "dict.h"
@@ -41,7 +41,7 @@ void msgerr(const TQString &msg, const TQString &dict = TQString())
{
TQString output = msg;
if (!dict.isNull())
- output = msg.tqarg(dict);
+ output = msg.arg(dict);
KMessageBox::error(0, output);
}
}
@@ -50,7 +50,7 @@ using namespace Dict;
TextType Dict::textType(const TQString &text)
{
- ushort first = text.tqat(0).tqunicode();
+ ushort first = text.at(0).unicode();
if (first < 0x3000)
return Text_Latin;
@@ -487,7 +487,7 @@ TQRegExp Dict::Index::createRegExp(SearchType type, const TQString &text, Dictio
regExp = "%1";
}
- return TQRegExp(regExp.tqarg(text), caseSensitive);
+ return TQRegExp(regExp.arg(text), caseSensitive);
}
int Index::stringCompare(File &file, int index, TQCString str)
@@ -769,8 +769,8 @@ TQString Dict::firstEntryText(Dict::SearchResult result)
///////////////////////////////////////////////////////////////
Entry::Entry(const TQString & kanji, const TQString & reading, const TQStringList &meanings)
- : DictName(TQString::tqfromLatin1("__NOTSET"))
- , Header(TQString::tqfromLatin1("__NOTSET"))
+ : DictName(TQString::fromLatin1("__NOTSET"))
+ , Header(TQString::fromLatin1("__NOTSET"))
, Meanings(meanings)
, Kanji(kanji)
, KanaOnly(reading.isEmpty())
@@ -784,8 +784,8 @@ Entry::Entry(const TQString & kanji, const TQString & reading, const TQStringLis
}
Entry::Entry(const TQString &kanji, TQStringList &readings, TQStringList &meanings, unsigned int grade, unsigned int freq, unsigned int strokes, unsigned int miscount)
- : DictName(TQString::tqfromLatin1("__NOTSET"))
- , Header(TQString::tqfromLatin1("__NOTSET"))
+ : DictName(TQString::fromLatin1("__NOTSET"))
+ , Header(TQString::fromLatin1("__NOTSET"))
, Meanings(meanings)
, Kanji(kanji)
, KanaOnly(false)
@@ -806,7 +806,7 @@ Entry::Entry(const TQString &dictname)
}
Entry::Entry(const TQString &headername, bool)
- : DictName(TQString::tqfromLatin1("__NOTSET"))
+ : DictName(TQString::fromLatin1("__NOTSET"))
, Header(headername)
, KanaOnly(true)
, ExtendedKanjiInfo(false)