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 | 330c33ab6f97b279737bf9527c9add7bb1475450 (patch) | |
tree | 85cb998d3077ae295d65944ebb4d0189fc660ead /parts/tools | |
parent | 093de0db4fea89b3f94a2359c6981f353d035eb7 (diff) | |
download | tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/tools')
-rw-r--r-- | parts/tools/kapplicationtree.cpp | 2 | ||||
-rw-r--r-- | parts/tools/tools_part.cpp | 16 | ||||
-rw-r--r-- | parts/tools/toolsconfigwidget.cpp | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/parts/tools/kapplicationtree.cpp b/parts/tools/kapplicationtree.cpp index 95400863..1844ba06 100644 --- a/parts/tools/kapplicationtree.cpp +++ b/parts/tools/kapplicationtree.cpp @@ -94,7 +94,7 @@ void KDevAppTreeListItem::init(const TQPixmap& pixmap, bool parse, bool dir, con exec = _exec; dEntry = _dEntry; exec.simplifyWhiteSpace(); - exec.truncate(exec.tqfind(' ')); + exec.truncate(exec.find(' ')); } diff --git a/parts/tools/tools_part.cpp b/parts/tools/tools_part.cpp index fbc02bd9..b6420714 100644 --- a/parts/tools/tools_part.cpp +++ b/parts/tools/tools_part.cpp @@ -135,21 +135,21 @@ void ToolsPart::startCommand(TQString cmdline, bool captured, TQString fileName) TQString word = KDevEditorUtil::currentWord( doc ); // This should really be checked before inserting into the popup - if (cmdline.tqcontains("%D") && projectDirectory.isNull()) + if (cmdline.contains("%D") && projectDirectory.isNull()) return; - cmdline.tqreplace(TQRegExp("%D"), projectDirectory); + cmdline.replace(TQRegExp("%D"), projectDirectory); - if (cmdline.tqcontains("%S") && fileName.isNull()) + if (cmdline.contains("%S") && fileName.isNull()) return; - cmdline.tqreplace(TQRegExp("%S"), fileName); + cmdline.replace(TQRegExp("%S"), fileName); - if (cmdline.tqcontains("%T") && selection.isNull()) + if (cmdline.contains("%T") && selection.isNull()) return; - cmdline.tqreplace(TQRegExp("%T"), selection); + cmdline.replace(TQRegExp("%T"), selection); - if (cmdline.tqcontains("%W") && word.isNull()) + if (cmdline.contains("%W") && word.isNull()) return; - cmdline.tqreplace(TQRegExp("%W"), word); + cmdline.replace(TQRegExp("%W"), word); if (captured) { diff --git a/parts/tools/toolsconfigwidget.cpp b/parts/tools/toolsconfigwidget.cpp index 5020b123..da96adad 100644 --- a/parts/tools/toolsconfigwidget.cpp +++ b/parts/tools/toolsconfigwidget.cpp @@ -125,7 +125,7 @@ void ToolsConfigWidget::fillListBox(TQListBox *lb, const TQDict<ToolsConfigEntry bool ToolsConfigWidget::addEntry(ToolsConfigEntry *entry, TQDict<ToolsConfigEntry> *entryDict) { TQString menutext = entry->menutext; - if (entryDict->tqfind(menutext)) { + if (entryDict->find(menutext)) { delete entry; KMessageBox::sorry(this, i18n("An entry with this title exists already.")); return false; |