summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/editor/completion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/tools/designer/editor/completion.cpp')
-rw-r--r--tqtinterface/qt4/tools/designer/editor/completion.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tqtinterface/qt4/tools/designer/editor/completion.cpp b/tqtinterface/qt4/tools/designer/editor/completion.cpp
index 1b42cb0..d3a92b2 100644
--- a/tqtinterface/qt4/tools/designer/editor/completion.cpp
+++ b/tqtinterface/qt4/tools/designer/editor/completion.cpp
@@ -166,7 +166,7 @@ EditorCompletion::~EditorCompletion()
void EditorCompletion::addCompletionEntry( const TQString &s, TQTextDocument *, bool strict )
{
TQChar key( s[ 0 ] );
- TQMap<TQChar, TQStringList>::Iterator it = completionMap.tqfind( key );
+ TQMap<TQChar, TQStringList>::Iterator it = completionMap.find( key );
if ( it == completionMap.end() ) {
completionMap.insert( key, TQStringList( s ) );
} else {
@@ -194,7 +194,7 @@ TQValueList<CompletionEntry> EditorCompletion::completionList( const TQString &s
( (EditorCompletion*)this )->updateCompletionMap( doc );
TQChar key( s[ 0 ] );
- TQMap<TQChar, TQStringList>::ConstIterator it = completionMap.tqfind( key );
+ TQMap<TQChar, TQStringList>::ConstIterator it = completionMap.find( key );
if ( it == completionMap.end() )
return TQValueList<CompletionEntry>();
TQStringList::ConstIterator it2 = (*it).begin();
@@ -207,7 +207,7 @@ TQValueList<CompletionEntry> EditorCompletion::completionList( const TQString &s
c.postfix = "";
c.prefix = "";
c.postfix2 = "";
- if ( (int)(*it2).length() > len && (*it2).left( len ) == s && lst.tqfind( c ) == lst.end() )
+ if ( (int)(*it2).length() > len && (*it2).left( len ) == s && lst.find( c ) == lst.end() )
lst << c;
}
@@ -448,7 +448,7 @@ void EditorCompletion::completeCompletion()
curEditor->insert( s, (uint) ( TQTextEdit::RedoIndentation |
TQTextEdit::CheckNewLines |
TQTextEdit::RemoveSelected ) );
- int i = s.tqfind( '(' );
+ int i = s.find( '(' );
completionPopup->close();
curEditor->setFocus();
if ( i != -1 && i < (int)s.length() ) {
@@ -499,7 +499,7 @@ bool EditorCompletion::doObjectCompletion( const TQString & )
static void strip( TQString &txt )
{
- int i = txt.tqfind( "(" );
+ int i = txt.find( "(" );
if ( i == -1 )
return;
txt = txt.left( i );
@@ -517,7 +517,7 @@ bool EditorCompletion::continueComplete()
return TRUE;
}
- TQListBoxItem *i = completionListBox->tqfindItem( searchString );
+ TQListBoxItem *i = completionListBox->findItem( searchString );
if ( !i )
return FALSE;
@@ -623,9 +623,9 @@ bool EditorCompletion::doArgumentHint( bool useIndex )
TQString func = function;
int pnt = -1;
- pnt = func.tqfindRev( '.' );
+ pnt = func.findRev( '.' );
if ( pnt == -1 )
- func.tqfindRev( '>' );
+ func.findRev( '>' );
if ( pnt != -1 )
func = func.mid( pnt + 1 );