diff options
Diffstat (limited to 'ksirc/ksview.cpp')
-rw-r--r-- | ksirc/ksview.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/ksirc/ksview.cpp b/ksirc/ksview.cpp index fec60844..4fb90d9b 100644 --- a/ksirc/ksview.cpp +++ b/ksirc/ksview.cpp @@ -18,12 +18,12 @@ // $Id$ -#include <clipboard.h> +#include <tqclipboard.h> #include <tqdatetime.h> #include <tqregexp.h> #include <tqdragobject.h> #include <tqvaluestack.h> -#include <stylesheet.h> +#include <tqstylesheet.h> #include <kapplication.h> #include <kdebug.h> @@ -73,10 +73,10 @@ void KSircView::clear() TQString KSircView::makeTimeStamp() { TQTime now = TQTime::currentTime(); - TQString timeStamp = TQString::fromLatin1( "[%1:%2:%3] " ) - .arg( TQString::number( now.hour() ).rightJustify( 2, '0' ) ) - .arg( TQString::number( now.minute() ).rightJustify( 2, '0' ) ) - .arg( TQString::number( now.second() ).rightJustify( 2, '0' ) ); + TQString timeStamp = TQString::tqfromLatin1( "[%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' ) ); return timeStamp; } @@ -109,14 +109,14 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const //kdDebug(5008) << "Start Text: " << _text << endl; TQString richText( "<font color=\"%1\">" ); - richText = richText.arg( color.name() ); + richText = richText.tqarg( color.name() ); if ( !pixmap.isEmpty() ) - richText.prepend( TQString::fromLatin1( "<img src=\"%1\"></img>" ).arg( pixmap ) ); + richText.prepend( TQString::tqfromLatin1( "<img src=\"%1\"></img>" ).tqarg( pixmap ) ); - TQString timeStamp = TQString::fromLatin1( "<font color=\"%1\">%2</font>" ) - .arg( ksopts->textColor.name() ) - .arg( makeTimeStamp() ); + TQString timeStamp = TQString::tqfromLatin1( "<font color=\"%1\">%2</font>" ) + .tqarg( ksopts->textColor.name() ) + .tqarg( makeTimeStamp() ); m_timeStamps.append(timeStamp); if ( m_timestamps ) richText.prepend( 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::fromLatin1( "<span>\\1</span>\\2" ) ); + text.replace( bidiRe, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) ); TQRegExp bidiRe2( "^(\\[\\S+\\])(.+)$" ); - text.replace( bidiRe2, TQString::fromLatin1( "<span>\\1</span>\\2" ) ); + text.replace( bidiRe2, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) ); TQRegExp bidiRe3( "^(>\\S+<)(.+)$" ); - text.replace( bidiRe3, TQString::fromLatin1( "<span>\\1</span>\\2" ) ); + text.replace( bidiRe3, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) ); TQRegExp nickCol( "~n(.+)~n" ); nickCol.setMinimal(true); @@ -147,13 +147,13 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const if( nickCol.cap(1) != m_proc->getNick()){ TQColor col = nickColourMaker::colourMaker()->findFg(nickCol.cap(1)); - newText.prepend(TQString("<font color=\"%1\">").arg(col.name())); + newText.prepend(TQString("<font color=\"%1\">").tqarg(col.name())); newText.append("</font>"); } else { TQColor col = ksopts->ownNickColor.name(); if( ! col.isValid()) nickColourMaker::colourMaker()->findFg(nickCol.cap(1)); - newText.prepend(TQString("<font color=\"%1\">").arg(col.name())); + newText.prepend(TQString("<font color=\"%1\">").tqarg(col.name())); newText.append("</font>"); if(ksopts->ownNickBold){ newText.prepend("<b>"); @@ -199,7 +199,7 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const } if (parser.beeped()) { - KNotifyClient::event(winId(), TQString::fromLatin1("BeepReceived"), + KNotifyClient::event(winId(), TQString::tqfromLatin1("BeepReceived"), i18n("Beep Received")); } @@ -224,9 +224,9 @@ void KSircView::addRichText(const TQString &_text) timeStamp = re.cap(1); } else { - timeStamp = TQString::fromLatin1( "<font color=\"%1\">%2</font>" ) - .arg( ksopts->textColor.name() ) - .arg( makeTimeStamp() ); + timeStamp = TQString::tqfromLatin1( "<font color=\"%1\">%2</font>" ) + .tqarg( ksopts->textColor.name() ) + .tqarg( makeTimeStamp() ); if ( m_timestamps ) text.prepend( timeStamp ); } @@ -303,12 +303,12 @@ void KSircView::anchorClicked(const TQMouseEvent *ev, const TQString &url) void KSircView::openBrowser(const TQString &url ) { - (void) new KRun( KURL( url.startsWith("www") ? TQString::fromLatin1("http://") + url : url)); + (void) new KRun( KURL( url.startsWith("www") ? TQString::tqfromLatin1("http://") + url : url)); } void KSircView::copyLinkToClipboard( const TQString &url ) { - TQApplication::clipboard()->setText( url, TQClipboard::Clipboard ); + TQApplication::tqclipboard()->setText( url, TQClipboard::Clipboard ); } TQColor KSircView::ircColor(int code) |