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 | 937b2991d8e78166eea904c80ad04d34607017a4 (patch) | |
tree | 2accb8161eab09df5d7a5484ea9ea080ad123168 /ksirc/kstextview.cpp | |
parent | dba26cb985af370c33d1767037851705cc561726 (diff) | |
download | tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.tar.gz tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.zip |
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
Diffstat (limited to 'ksirc/kstextview.cpp')
-rw-r--r-- | ksirc/kstextview.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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(); |