summaryrefslogtreecommitdiffstats
path: root/parts/snippet/snippet_widget.cpp
diff options
context:
space:
mode:
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);