diff options
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; |