summaryrefslogtreecommitdiffstats
path: root/src/tellico_utils.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:15:24 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:15:24 -0600
commit8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch)
tree55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/tellico_utils.cpp
parent2781e27b871150395a5a82e221684108641002b2 (diff)
downloadtellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz
tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/tellico_utils.cpp')
-rw-r--r--src/tellico_utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tellico_utils.cpp b/src/tellico_utils.cpp
index f04036a..36986a3 100644
--- a/src/tellico_utils.cpp
+++ b/src/tellico_utils.cpp
@@ -35,7 +35,7 @@ namespace {
TQColor Tellico::contrastColor;
TQString Tellico::decodeHTML(TQString text) {
- TQRegExp rx(TQString::tqfromLatin1("&(.+);"));
+ TQRegExp rx(TQString::fromLatin1("&(.+);"));
rx.setMinimal(true);
int pos = rx.search(text);
while(pos > -1) {
@@ -51,7 +51,7 @@ TQString Tellico::decodeHTML(TQString text) {
TQString Tellico::uid(int l, bool prefix) {
TQString uid;
if(prefix) {
- uid = TQString::tqfromLatin1("Tellico");
+ uid = TQString::fromLatin1("Tellico");
}
uid.append(kapp->randomString(TQMAX(l - uid.length(), 0)));
return uid;
@@ -80,7 +80,7 @@ uint Tellico::toUInt(const TQString& s, bool* ok) {
TQString Tellico::i18nReplace(TQString text) {
// Because TQDomDocument sticks in random newlines, go ahead and grab them too
- static TQRegExp rx(TQString::tqfromLatin1("(?:\\n+ *)*<i18n>([^<]*)</i18n>(?: *\\n+)*"));
+ static TQRegExp rx(TQString::fromLatin1("(?:\\n+ *)*<i18n>([^<]*)</i18n>(?: *\\n+)*"));
int pos = rx.search(text);
while(pos > -1) {
text.replace(pos, rx.matchedLength(), i18n(rx.cap(1).utf8()));