diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-09 22:25:47 -0500 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-09 22:25:47 -0500 |
| commit | eaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch) | |
| tree | 4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp | |
| parent | 79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff) | |
| download | experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip | |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp')
| -rw-r--r-- | tqtinterface/qt4/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tqtinterface/qt4/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp b/tqtinterface/qt4/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp index 736b082..9d34421 100644 --- a/tqtinterface/qt4/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp +++ b/tqtinterface/qt4/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp @@ -165,40 +165,40 @@ void EditorInterfaceImpl::selectAll() ( (CppEditor*)viewManager->currentView() )->selectAll(); } -bool EditorInterfaceImpl::tqfind( const TQString &expr, bool cs, bool wo, bool forward, bool startAtCursor ) +bool EditorInterfaceImpl::find( const TQString &expr, bool cs, bool wo, bool forward, bool startAtCursor ) { if ( !viewManager || !viewManager->currentView() ) return FALSE; CppEditor *e = (CppEditor*)viewManager->currentView(); if ( startAtCursor ) - return e->tqfind( expr, cs, wo, forward ); + return e->find( expr, cs, wo, forward ); int dummy = 0; - return e->tqfind( expr, cs, wo, forward, &dummy, &dummy ); + return e->find( expr, cs, wo, forward, &dummy, &dummy ); } -bool EditorInterfaceImpl::tqreplace( const TQString &tqfind, const TQString &tqreplace, bool cs, bool wo, - bool forward, bool startAtCursor, bool tqreplaceAll ) +bool EditorInterfaceImpl::replace( const TQString &find, const TQString &replace, bool cs, bool wo, + bool forward, bool startAtCursor, bool replaceAll ) { if ( !viewManager || !viewManager->currentView() ) return FALSE; CppEditor *e = (CppEditor*)viewManager->currentView(); bool ok = FALSE; if ( startAtCursor ) { - ok = e->tqfind( tqfind, cs, wo, forward ); + ok = e->find( find, cs, wo, forward ); } else { int dummy = 0; - ok = e->tqfind( tqfind, cs, wo, forward, &dummy, &dummy ); + ok = e->find( find, cs, wo, forward, &dummy, &dummy ); } if ( ok ) { e->removeSelectedText(); - e->insert( tqreplace, FALSE, FALSE ); + e->insert( replace, FALSE, FALSE ); } - if ( !tqreplaceAll || !ok ) { + if ( !replaceAll || !ok ) { if ( ok ) e->setSelection( e->textCursor()->paragraph()->paragId(), - e->textCursor()->index() - tqreplace.length(), + e->textCursor()->index() - replace.length(), e->textCursor()->paragraph()->paragId(), e->textCursor()->index() ); return ok; @@ -206,10 +206,10 @@ bool EditorInterfaceImpl::tqreplace( const TQString &tqfind, const TQString &tqr bool ok2 = TRUE; while ( ok2 ) { - ok2 = e->tqfind( tqfind, cs, wo, forward ); + ok2 = e->find( find, cs, wo, forward ); if ( ok2 ) { e->removeSelectedText(); - e->insert( tqreplace, FALSE, FALSE ); + e->insert( replace, FALSE, FALSE ); } } @@ -249,7 +249,7 @@ void EditorInterfaceImpl::scrollTo( const TQString &txt, const TQString & ) TQTextDocument *doc = ( (CppEditor*)viewManager->currentView() )->document(); TQTextParagraph *p = doc->firstParagraph(); while ( p ) { - if ( p->string()->toString().tqfind( txt ) != -1 ) { + if ( p->string()->toString().find( txt ) != -1 ) { ( (CppEditor*)viewManager->currentView() )->setCursorPosition( p->paragId() + 2, 0 ); break; } |
