diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:34:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:34:15 -0600 |
commit | 031454e56009d576589c28757f6c6fcf4884095e (patch) | |
tree | ad4c9959d05a814c9090e8fe63ba27057903271b /src/tellico_utils.cpp | |
parent | 54011e0e1af8cd96162160ecf5d361a59a2c733e (diff) | |
download | tellico-031454e56009d576589c28757f6c6fcf4884095e.tar.gz tellico-031454e56009d576589c28757f6c6fcf4884095e.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/tellico_utils.cpp')
-rw-r--r-- | src/tellico_utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tellico_utils.cpp b/src/tellico_utils.cpp index f04036a..275c096 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())); @@ -118,7 +118,7 @@ int Tellico::stringHash(const TQString& str) { uint h = 0; uint g = 0; for(uint i = 0; i < str.length(); ++i) { - h = (h << 4) + str.tqunicode()[i].cell(); + h = (h << 4) + str.unicode()[i].cell(); if((g = h & 0xf0000000)) { h ^= g >> 24; } |