From 937b2991d8e78166eea904c80ad04d34607017a4 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksirc/kstextview.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'ksirc/kstextview.cpp') diff --git a/ksirc/kstextview.cpp b/ksirc/kstextview.cpp index b12f8864..1ad22239 100644 --- a/ksirc/kstextview.cpp +++ b/ksirc/kstextview.cpp @@ -57,7 +57,7 @@ TQPixmap ksTextViewLoadPixmap( const TQString &icon ) qAddPostRoutine( cleanupKSTextViewPixmapDict ); } - TQPixmap *pix = ksTextViewPixmapDict->tqfind( icon ); + TQPixmap *pix = ksTextViewPixmapDict->find( icon ); if ( !pix ) { TQImage img; @@ -586,22 +586,22 @@ TQString Tokenizer::convertToRichText( const PString &ptext ) { TQString entity = KGlobal::charsets()->toEntity( ch ); indexAdjustment = entity.length() - 1; - result.tqreplace( i, 1, entity ); + result.replace( i, 1, entity ); } */ if ( ch == '<' ) { - result.tqreplace( i, 1, "<" ); + result.replace( i, 1, "<" ); indexAdjustment = 3; } else if ( ch == '>' ) { - result.tqreplace( i, 1, ">" ); + result.replace( i, 1, ">" ); indexAdjustment = 3; } else if ( ch == '&' ) { - result.tqreplace( i, 1, "&" ); + result.replace( i, 1, "&" ); indexAdjustment = 4; } @@ -1056,7 +1056,7 @@ TQString TextLine::updateSelection( const SelectionPoint &start, const Selection if ( start.line == this ) { - const int idx = m_items.tqfindRef( start.item ); + const int idx = m_items.findRef( start.item ); assert( idx != -1 ); } else @@ -1070,7 +1070,7 @@ TQString TextLine::updateSelection( const SelectionPoint &start, const Selection { const int oldCurrent = m_items.at(); - const int idx = m_items.tqfindRef( end.item ); + const int idx = m_items.findRef( end.item ); assert( idx != -1 ); lastItem = m_items.next(); @@ -1381,11 +1381,11 @@ TQString TextParag::updateSelection( const SelectionPoint &start, const Selectio // sanity check // (don't put it lower because it changes the current list item) if ( end.parag == this ) - assert( m_lines.tqfindRef( end.line ) != -1 ); + assert( m_lines.findRef( end.line ) != -1 ); if ( start.parag == this ) { - int idx = m_lines.tqfindRef( start.line ); + int idx = m_lines.findRef( start.line ); assert( idx != -1 ); } else @@ -1742,7 +1742,7 @@ bool TextView::removeParag( const TextParagIterator ¶g ) return false; TextParag *paragPtr = parag.m_paragIt.current(); - const int idx = m_parags.tqfindRef( paragPtr ); + const int idx = m_parags.findRef( paragPtr ); if ( idx == -1 ) return false; @@ -2138,8 +2138,8 @@ TQString TextView::updateSelection( const SelectionPoint &start, const Selection } else { - assert( m_parags.tqfindRef( end.parag ) != -1 ); - const int idx = m_parags.tqfindRef( start.parag ); + assert( m_parags.findRef( end.parag ) != -1 ); + const int idx = m_parags.findRef( start.parag ); assert( idx != -1 ); TextParag *p = m_parags.current(); -- cgit v1.2.3