summaryrefslogtreecommitdiffstats
path: root/ksirc/topic.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit937b2991d8e78166eea904c80ad04d34607017a4 (patch)
tree2accb8161eab09df5d7a5484ea9ea080ad123168 /ksirc/topic.cpp
parentdba26cb985af370c33d1767037851705cc561726 (diff)
downloadtdenetwork-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/topic.cpp')
-rw-r--r--ksirc/topic.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ksirc/topic.cpp b/ksirc/topic.cpp
index 3afa199d..1932fa03 100644
--- a/ksirc/topic.cpp
+++ b/ksirc/topic.cpp
@@ -51,11 +51,11 @@ void KSircTopic::setText( const TQString &_text)
TQString richText( "<font color=\"%1\">" );
richText = richText.tqarg( ksopts->textColor.name() );
- text.tqreplace('&', "&amp;");
- text.tqreplace('<', "&lt;");
- text.tqreplace('>', "&gt;");
+ text.replace('&', "&amp;");
+ text.replace('<', "&lt;");
+ text.replace('>', "&gt;");
- text.tqreplace('~', "~~");
+ text.replace('~', "~~");
// ### a bit of a hack: turn '&lt;nick&gt; message' into
// <span>&lt;nick&gt;<span> message' . span itself isn't supported but it
@@ -65,11 +65,11 @@ void KSircTopic::setText( const TQString &_text)
// '<nick message<' , which is supposedly a bug in TQt's reordering. The
// same is done for [nick] and >nick< to catch queries.
TQRegExp bidiRe( "^(&lt;\\S+&gt;)(.+)$" );
- text.tqreplace( bidiRe, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
TQRegExp bidiRe2( "^(\\[\\S+\\])(.+)$" );
- text.tqreplace( bidiRe2, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe2, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
TQRegExp bidiRe3( "^(&gt;\\S+&lt;)(.+)$" );
- text.tqreplace( bidiRe3, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe3, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
KSParser parser;
richText += parser.parse( text );
@@ -228,9 +228,9 @@ TQPopupMenu *KSircTopicEditor::createPopupMenu( const TQPoint &pos )
void KSircTopicEditor::slotMaybeResize()
{
- if(text().tqcontains("\n")){
+ if(text().contains("\n")){
TQString s = text();
- s.tqreplace('\n', " ");
+ s.replace('\n', " ");
setText(s);
setCursorPosition(0, s.length());
}