summaryrefslogtreecommitdiffstats
path: root/ksirc/ksview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:33:51 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:33:51 -0600
commit089118c18533dfa3e6ce5065dbebdd4db94051f1 (patch)
treece014fb2326a80fcfafa2362b7ff88486aa17c96 /ksirc/ksview.cpp
parent83677e35509b4dafac63b76995652bdf3b49f209 (diff)
downloadtdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.tar.gz
tdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'ksirc/ksview.cpp')
-rw-r--r--ksirc/ksview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ksirc/ksview.cpp b/ksirc/ksview.cpp
index 4fb90d9b..62a4bca4 100644
--- a/ksirc/ksview.cpp
+++ b/ksirc/ksview.cpp
@@ -73,7 +73,7 @@ void KSircView::clear()
TQString KSircView::makeTimeStamp()
{
TQTime now = TQTime::currentTime();
- TQString timeStamp = TQString::tqfromLatin1( "[%1:%2:%3] " )
+ TQString timeStamp = TQString::fromLatin1( "[%1:%2:%3] " )
.tqarg( TQString::number( now.hour() ).rightJustify( 2, '0' ) )
.tqarg( TQString::number( now.minute() ).rightJustify( 2, '0' ) )
.tqarg( TQString::number( now.second() ).rightJustify( 2, '0' ) );
@@ -112,9 +112,9 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const
richText = richText.tqarg( color.name() );
if ( !pixmap.isEmpty() )
- richText.prepend( TQString::tqfromLatin1( "<img src=\"%1\"></img>" ).tqarg( pixmap ) );
+ richText.prepend( TQString::fromLatin1( "<img src=\"%1\"></img>" ).tqarg( pixmap ) );
- TQString timeStamp = TQString::tqfromLatin1( "<font color=\"%1\">%2</font>" )
+ TQString timeStamp = TQString::fromLatin1( "<font color=\"%1\">%2</font>" )
.tqarg( ksopts->textColor.name() )
.tqarg( makeTimeStamp() );
m_timeStamps.append(timeStamp);
@@ -131,11 +131,11 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const
// '<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.replace( bidiRe, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe, TQString::fromLatin1( "<span>\\1</span>\\2" ) );
TQRegExp bidiRe2( "^(\\[\\S+\\])(.+)$" );
- text.replace( bidiRe2, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe2, TQString::fromLatin1( "<span>\\1</span>\\2" ) );
TQRegExp bidiRe3( "^(&gt;\\S+&lt;)(.+)$" );
- text.replace( bidiRe3, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe3, TQString::fromLatin1( "<span>\\1</span>\\2" ) );
TQRegExp nickCol( "~n(.+)~n" );
nickCol.setMinimal(true);
@@ -199,7 +199,7 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const
}
if (parser.beeped()) {
- KNotifyClient::event(winId(), TQString::tqfromLatin1("BeepReceived"),
+ KNotifyClient::event(winId(), TQString::fromLatin1("BeepReceived"),
i18n("Beep Received"));
}
@@ -224,7 +224,7 @@ void KSircView::addRichText(const TQString &_text)
timeStamp = re.cap(1);
}
else {
- timeStamp = TQString::tqfromLatin1( "<font color=\"%1\">%2</font>" )
+ timeStamp = TQString::fromLatin1( "<font color=\"%1\">%2</font>" )
.tqarg( ksopts->textColor.name() )
.tqarg( makeTimeStamp() );
if ( m_timestamps )
@@ -303,7 +303,7 @@ void KSircView::anchorClicked(const TQMouseEvent *ev, const TQString &url)
void KSircView::openBrowser(const TQString &url )
{
- (void) new KRun( KURL( url.startsWith("www") ? TQString::tqfromLatin1("http://") + url : url));
+ (void) new KRun( KURL( url.startsWith("www") ? TQString::fromLatin1("http://") + url : url));
}
void KSircView::copyLinkToClipboard( const TQString &url )