summaryrefslogtreecommitdiffstats
path: root/parts/snippet/snippet_widget.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
commit330c33ab6f97b279737bf9527c9add7bb1475450 (patch)
tree85cb998d3077ae295d65944ebb4d0189fc660ead /parts/snippet/snippet_widget.cpp
parent093de0db4fea89b3f94a2359c6981f353d035eb7 (diff)
downloadtdevelop-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/snippet/snippet_widget.cpp')
-rw-r--r--parts/snippet/snippet_widget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/parts/snippet/snippet_widget.cpp b/parts/snippet/snippet_widget.cpp
index 6a83681e..e460cb67 100644
--- a/parts/snippet/snippet_widget.cpp
+++ b/parts/snippet/snippet_widget.cpp
@@ -589,9 +589,9 @@ TQString SnippetWidget::parseText(TQString text, TQString del)
TQRect rMulti = _SnippetConfig.getMultiRect();
do {
- iFound = text.tqfind(TQRegExp("\\"+del+"[A-Za-z-_0-9\\s]*\\"+del), iEnd+1); //find the next variable by this TQRegExp
+ iFound = text.find(TQRegExp("\\"+del+"[A-Za-z-_0-9\\s]*\\"+del), iEnd+1); //find the next variable by this TQRegExp
if (iFound >= 0) {
- iEnd = text.tqfind(del, iFound+1)+1;
+ iEnd = text.find(del, iFound+1)+1;
strName = text.mid(iFound, iEnd-iFound);
if ( strName != del+del ) { //if not doubel-delimiter
@@ -612,7 +612,7 @@ TQString SnippetWidget::parseText(TQString text, TQString del)
}
if (iInMeth == 0) { //if input-method "single" is selected
- str.tqreplace(strName, strNew);
+ str.replace(strName, strNew);
}
mapVar[strName] = strNew;
@@ -627,7 +627,7 @@ TQString SnippetWidget::parseText(TQString text, TQString del)
if (showMultiVarDialog( &mapVar, &_mapSaved, w, bh, oh )) { //generate and show the dialog
TQMap<TQString, TQString>::Iterator it;
for ( it = mapVar.begin(); it != mapVar.end(); ++it ) { //walk through the map and do the replacement
- str.tqreplace(it.key(), it.data());
+ str.replace(it.key(), it.data());
}
} else {
return "";
@@ -958,7 +958,7 @@ void SnippetWidget::languageChanged()
for (SnippetItem *it=_list.first(); it; it=_list.next()) {
SnippetGroup * group = dynamic_cast<SnippetGroup*>(it);
if (group) {
- if (group->getLanguage() == i18n("All") || langs.tqcontains(group->getLanguage())) {
+ if (group->getLanguage() == i18n("All") || langs.contains(group->getLanguage())) {
group->setOpen(TRUE);
} else {
group->setOpen(FALSE);