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 | 33038ab0e8b8e7fb05093f953e4f6f724c6e2482 (patch) | |
tree | 6a5f53930c5919157cb0f1e928500f97ff8dde95 /kbarcode/dstextedit.cpp | |
parent | 7a4cd8d44ee83c7de058bb0da8ae6676166e9325 (diff) | |
download | kbarcode-33038ab0e8b8e7fb05093f953e4f6f724c6e2482.tar.gz kbarcode-33038ab0e8b8e7fb05093f953e4f6f724c6e2482.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbarcode@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbarcode/dstextedit.cpp')
-rw-r--r-- | kbarcode/dstextedit.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kbarcode/dstextedit.cpp b/kbarcode/dstextedit.cpp index 370d88c..13d9e07 100644 --- a/kbarcode/dstextedit.cpp +++ b/kbarcode/dstextedit.cpp @@ -85,13 +85,13 @@ void DSTextEdit::fixParagraphs() while( pos != -1 ) { - pos = t.tqfindRev( "</p>", pos ); + pos = t.findRev( "</p>", pos ); if( pos != -1 ) { ++count; if( count > 1 ) //&& pos != -1 ) - t = t.tqreplace( pos, 4, "<br />" ); + t = t.replace( pos, 4, "<br />" ); else pos -= 4; } @@ -128,14 +128,14 @@ bool DSTextEdit::cursorIsInToken() qDebug("data=" + data ); --index; - firstopen = data.tqfindRev( "[", index ); - firstclose = data.tqfindRev( "]", index ); + firstopen = data.findRev( "[", index ); + firstclose = data.findRev( "]", index ); ++index; if( firstopen != -1 && firstopen > firstclose ) { - firstopen = data.tqfind( "[", index ); - firstclose = data.tqfind( "]", index ); + firstopen = data.find( "[", index ); + firstclose = data.find( "]", index ); if( ( firstclose != -1 && firstopen != -1 && firstclose < firstopen ) || ( firstclose != -1 && firstopen == -1 ) ) return true; |