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 | a53c68f02a359d234dee62dfa3bdd12bb17b13b5 (patch) | |
tree | 5a800b73c31a1a1251ab533dc614b521f1378ce3 /ksayit/src/doctreeviewimpl.cpp | |
parent | 389971def351e67fcf01c3dbe6b83c4d721dd755 (diff) | |
download | tdeaccessibility-a53c68f02a359d234dee62dfa3bdd12bb17b13b5.tar.gz tdeaccessibility-a53c68f02a359d234dee62dfa3bdd12bb17b13b5.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksayit/src/doctreeviewimpl.cpp')
-rw-r--r-- | ksayit/src/doctreeviewimpl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ksayit/src/doctreeviewimpl.cpp b/ksayit/src/doctreeviewimpl.cpp index db6ed32..c4b9797 100644 --- a/ksayit/src/doctreeviewimpl.cpp +++ b/ksayit/src/doctreeviewimpl.cpp @@ -197,7 +197,7 @@ void DocTreeViewImpl::openFile(const KURL &url) TQString line; int offset; file.readLine( line, file.size() ); - while( !file.atEnd() && (offset = line.tqfind("<book", 0, false)) < 0 ){ + while( !file.atEnd() && (offset = line.find("<book", 0, false)) < 0 ){ header += line; file.readLine( line, file.size() ); } @@ -391,9 +391,9 @@ void DocTreeViewImpl::setEditMode(bool mode) void DocTreeViewImpl::makeToSingleLine( TQString &content ) { // canonify string - content.tqreplace( TQRegExp("\n"), "" ); // remove Newlines - content.tqreplace( TQRegExp(" {2,}"), " " ); // remove multiple spaces - content.tqreplace( TQRegExp("[\t|\r]{1,}"), ""); // remove Tabs + content.replace( TQRegExp("\n"), "" ); // remove Newlines + content.replace( TQRegExp(" {2,}"), " " ); // remove multiple spaces + content.replace( TQRegExp("[\t|\r]{1,}"), ""); // remove Tabs } @@ -594,8 +594,8 @@ TQString DocTreeViewImpl::getItemTitle( ListViewInterface *item ) title = ( item->getValue(KSayItGlobal::SPEAKERDATA) ).toString().left(32); // canonify string - title.tqreplace( TQRegExp("^( |\t|\n)+"), ""); - title.tqreplace( TQRegExp("( |\t|\n)$+"), ""); + title.replace( TQRegExp("^( |\t|\n)+"), ""); + title.replace( TQRegExp("( |\t|\n)$+"), ""); } else { title = col0.left(32); } |