summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/gadu/gadurichtextformat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/gadu/gadurichtextformat.cpp')
-rw-r--r--kopete/protocols/gadu/gadurichtextformat.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kopete/protocols/gadu/gadurichtextformat.cpp b/kopete/protocols/gadu/gadurichtextformat.cpp
index 9e46b967..9dcdbc21 100644
--- a/kopete/protocols/gadu/gadurichtextformat.cpp
+++ b/kopete/protocols/gadu/gadurichtextformat.cpp
@@ -150,7 +150,7 @@ GaduRichTextFormat::convertToGaduMessage( const Kopete::Message& message )
output->rtf.resize(0);
// test first if there is any HTML formating in it
- if( htmlString.tqfind( TQString::tqfromLatin1("</span") ) > -1 ) {
+ if( htmlString.find( TQString::tqfromLatin1("</span") ) > -1 ) {
TQRegExp findTags( TQString::tqfromLatin1("<span style=\"(.*)\">(.*)</span>") );
findTags.setMinimal( true );
int pos = 0;
@@ -199,7 +199,7 @@ GaduRichTextFormat::convertToGaduMessage( const Kopete::Message& message )
}
TQString rep = TQString("<span style=\"%1\">%2</span>" ).tqarg( styleHTML ).tqarg( replacement );
- htmlString.tqreplace( findTags.pos( 0 ), rep.length(), replacement );
+ htmlString.replace( findTags.pos( 0 ), rep.length(), replacement );
replacement = unescapeGaduMessage( replacement );
output->message += replacement;
@@ -245,7 +245,7 @@ GaduRichTextFormat::unescapeGaduMessage( TQString& ns )
{
TQString s;
s = Kopete::Message::unescape( ns );
- s.tqreplace( TQString::fromAscii( "\n" ), TQString::fromAscii( "\r\n" ) );
+ s.replace( TQString::fromAscii( "\n" ), TQString::fromAscii( "\r\n" ) );
return s;
}
@@ -282,10 +282,10 @@ GaduRichTextFormat::insertRtf( uint position)
TQString
GaduRichTextFormat::escapeBody( TQString& input )
{
- input.tqreplace( '<', TQString::tqfromLatin1("&lt;") );
- input.tqreplace( '>', TQString::tqfromLatin1("&gt;") );
- input.tqreplace( '\n', TQString::tqfromLatin1( "<br />" ) );
- input.tqreplace( '\t', TQString::tqfromLatin1( "&nbsp;&nbsp;&nbsp;&nbsp;" ) );
- input.tqreplace( TQRegExp( TQString::tqfromLatin1( "\\s\\s" ) ), TQString::tqfromLatin1( " &nbsp;" ) );
+ input.replace( '<', TQString::tqfromLatin1("&lt;") );
+ input.replace( '>', TQString::tqfromLatin1("&gt;") );
+ input.replace( '\n', TQString::tqfromLatin1( "<br />" ) );
+ input.replace( '\t', TQString::tqfromLatin1( "&nbsp;&nbsp;&nbsp;&nbsp;" ) );
+ input.replace( TQRegExp( TQString::tqfromLatin1( "\\s\\s" ) ), TQString::tqfromLatin1( " &nbsp;" ) );
return input;
}