diff options
Diffstat (limited to 'ksirc/ksview.cpp')
-rw-r--r-- | ksirc/ksview.cpp | 18 |
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( "^(<\\S+>)(.+)$" ); - 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( "^(>\\S+<)(.+)$" ); - 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 ) |