summaryrefslogtreecommitdiffstats
path: root/ksirc/kstextview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/kstextview.cpp')
-rw-r--r--ksirc/kstextview.cpp24
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, "&lt;" );
+ result.replace( i, 1, "&lt;" );
indexAdjustment = 3;
}
else if ( ch == '>' )
{
- result.tqreplace( i, 1, "&gt;" );
+ result.replace( i, 1, "&gt;" );
indexAdjustment = 3;
}
else if ( ch == '&' )
{
- result.tqreplace( i, 1, "&amp;" );
+ result.replace( i, 1, "&amp;" );
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 &parag )
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();