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 | 72aaee9802d447ee21340b011856b9b355a58f1a (patch) | |
tree | f97a68e4f75e6c25c8492e03fdfe6983fb0aa199 /src/modules/editor/scripteditor.cpp | |
parent | 5d03948cd3558c613fae1fad109635f860babcbb (diff) | |
download | kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.tar.gz kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/editor/scripteditor.cpp')
-rw-r--r-- | src/modules/editor/scripteditor.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index cc9ca7c2..498da234 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -102,7 +102,7 @@ void KviCompletionBox::updateContents(TQString buffer) TQString szModule; TQChar* pCur = (TQChar *)buffer.ucs2(); - int pos=buffer.tqfind('.'); + int pos=buffer.find('.'); if(pos>0) { @@ -479,8 +479,8 @@ void KviScriptEditorWidget::getWordOnCursor(TQString &buffer,int index) const { TQRegExp re("[ \t=,\\(\\)\"}{\\[\\]\r\n+-*><;@!]"); //debug("BUFFER IS %s",buffer.utf8().data()); - int start = buffer.tqfindRev(re,index); - int end = buffer.tqfind(re,index); + int start = buffer.findRev(re,index); + int end = buffer.find(re,index); TQString tmp; if(start!=end) @@ -528,11 +528,11 @@ void KviScriptEditorWidget::getWordBeforeCursor(TQString &buffer,int index,bool { TQString tmp = buffer.left(index); buffer=tmp; - int idx = buffer.tqfindRev(' '); - int idx1 = buffer.tqfindRev("="); - int idx2 = buffer.tqfindRev(','); - int idx3 = buffer.tqfindRev('('); - int idx4 = buffer.tqfindRev('"'); + int idx = buffer.findRev(' '); + int idx1 = buffer.findRev("="); + int idx2 = buffer.findRev(','); + int idx3 = buffer.findRev('('); + int idx4 = buffer.findRev('"'); if(idx1 > idx) idx= idx1; if(idx2 > idx)idx = idx2; if(idx3 > idx)idx = idx3; @@ -812,7 +812,7 @@ int KviScriptSyntaxHighlighter::highlightParagraph(const TQString &text,int endS int index=0; while (i) { - index=text.tqfind(szFind,index,false); + index=text.find(szFind,index,false); if (index != -1) { setFormat(index,szFind.length(),g_clrFind); @@ -876,7 +876,7 @@ KviScriptEditorImplementation::KviScriptEditorImplementation(TQWidget * par) g->setColStretch(1,1); g->setColStretch(2,10); g->addWidget(m_pFindLineedit,1,2); - TQLabel *lab= new TQLabel("tqfind",this); + TQLabel *lab= new TQLabel("find",this); lab->setText(tr("Find")); g->addWidget(lab,1,1); @@ -926,7 +926,7 @@ bool KviScriptEditorImplementation::isModified() void KviScriptEditorImplementation::slotFind() { - emit tqfind(m_pFindLineedit->text()); + emit find(m_pFindLineedit->text()); } void KviScriptEditorImplementation::slotNextFind(const TQString &text) @@ -1177,10 +1177,10 @@ KviScriptEditorReplaceDialog::KviScriptEditorReplaceDialog( TQWidget* tqparent, tqlayout->addWidget( findNext, 2, 3 ); findNext->setEnabled(false); - tqreplace = new TQPushButton(this, "tqreplace" ); - tqreplace->setText(tr("&Replace(WIP)")); - tqlayout->addWidget( tqreplace, 3, 3 ); - tqreplace->setEnabled(false); + replace = new TQPushButton(this, "replace" ); + replace->setText(tr("&Replace(WIP)")); + tqlayout->addWidget( replace, 3, 3 ); + replace->setEnabled(false); #ifndef COMPILE_USE_QT4 clearWState( WState_Polished ); @@ -1209,7 +1209,7 @@ void KviScriptEditorReplaceDialog::slotReplace() { TQString txt=((KviScriptEditorWidget *)m_pParent)->text(); if (checkReplaceAll->isChecked()) emit replaceAll(m_pFindlineedit->text(),m_pReplacelineedit->text()); - txt.tqreplace(m_pFindlineedit->text(),m_pReplacelineedit->text(),false); + txt.replace(m_pFindlineedit->text(),m_pReplacelineedit->text(),false); ((KviScriptEditorWidget *)m_pParent)->setText(txt); ((KviScriptEditorWidget *)m_pParent)->setModified(true); m_pFindlineedit->setText(""); |