diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 627b091fad9df13695f249588e8a58f524eda0fa (patch) | |
tree | 98ff502a8743af48d8b88996e9a494fec4110586 /noatun-plugins/oblique/query.cpp | |
parent | f6e9c8d694be3d1df338b385125e13db41af0b1f (diff) | |
download | tdeaddons-627b091fad9df13695f249588e8a58f524eda0fa.tar.gz tdeaddons-627b091fad9df13695f249588e8a58f524eda0fa.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/oblique/query.cpp')
-rw-r--r-- | noatun-plugins/oblique/query.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noatun-plugins/oblique/query.cpp b/noatun-plugins/oblique/query.cpp index 0727ca6..dd73d66 100644 --- a/noatun-plugins/oblique/query.cpp +++ b/noatun-plugins/oblique/query.cpp @@ -171,7 +171,7 @@ TQString QueryGroup::presentation(const File &file) const uint len=counter.cap(1).length()-1; // and half them, and remove one more - format.tqreplace(start-1, len/2+1, ""); + format.replace(start-1, len/2+1, ""); start=start-1+len/2+find.cap(1).length()+3; continue; } @@ -186,7 +186,7 @@ TQString QueryGroup::presentation(const File &file) const uint len=counter.cap(1).length(); // and half them - format.tqreplace(start, len/2, ""); + format.replace(start, len/2, ""); start=start+len/2; } @@ -250,12 +250,12 @@ TQString QueryGroup::presentation(const File &file) const if (propval.length()) { propval = prefix+propval+suffix; - format.tqreplace(start, i+2, propval); + format.replace(start, i+2, propval); start += propval.length(); } else { - format.tqreplace(start, i+2, ""); + format.replace(start, i+2, ""); } } return format; @@ -383,7 +383,7 @@ void Query::save(const TQString &name, const TQString &filename) // scourge elimination TQString data = doc.toString(); TQString old = data; - while (data.tqreplace(TQRegExp("([\n\r]+)(\t*) "), "\\1\\2\t") != old) + while (data.replace(TQRegExp("([\n\r]+)(\t*) "), "\\1\\2\t") != old) { old = data; } |