summaryrefslogtreecommitdiffstats
path: root/ksayit/src/doctreeviewimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commita53c68f02a359d234dee62dfa3bdd12bb17b13b5 (patch)
tree5a800b73c31a1a1251ab533dc614b521f1378ce3 /ksayit/src/doctreeviewimpl.cpp
parent389971def351e67fcf01c3dbe6b83c4d721dd755 (diff)
downloadtdeaccessibility-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.cpp12
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);
}