From 24d203b42a12aec5addcc1a751b3b9220229366a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:43:42 -0600 Subject: Remove additional unneeded tq method conversions --- libkipi/libkipi/KDStream.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'libkipi/libkipi/KDStream.cpp') diff --git a/libkipi/libkipi/KDStream.cpp b/libkipi/libkipi/KDStream.cpp index 57c5527..60020ba 100644 --- a/libkipi/libkipi/KDStream.cpp +++ b/libkipi/libkipi/KDStream.cpp @@ -123,7 +123,7 @@ KDStream& KDStream::operator<<( bool b ) */ KDStream& KDStream::operator<<( char ch ) { - _output += TQString::fromLatin1("%1").tqarg( ch ); + _output += TQString::fromLatin1("%1").arg( ch ); return *this; } @@ -340,7 +340,7 @@ KDStream& KDStream::operator<<( const TQCursor& cursor ) { TQString type; - switch ( cursor.tqshape() ) { + switch ( cursor.shape() ) { case TQt::ArrowCursor: type = TQString::fromLatin1("ArrowCursor"); break; case TQt::UpArrowCursor: type = TQString::fromLatin1("UpArrowCursor"); break; case TQt::CrossCursor: type = TQString::fromLatin1("CrossCursor"); break; @@ -422,9 +422,9 @@ KDStream& KDStream::operator<<( const TQPen& pen ) } _output += TQString::fromLatin1("TQPen(%1,%2,%3)") - .tqarg( pen.width() ) - .tqarg( TQColor2Str( pen.color() ) ) - .tqarg( style ); + .arg( pen.width() ) + .arg( TQColor2Str( pen.color() ) ) + .arg( style ); return *this; } @@ -433,7 +433,7 @@ KDStream& KDStream::operator<<( const TQPen& pen ) */ KDStream& KDStream::operator<<( const TQPoint& point ) { - _output += TQString::fromLatin1("(%1,%2)").tqarg(point.x()).tqarg(point.y() ); + _output += TQString::fromLatin1("(%1,%2)").arg(point.x()).arg(point.y() ); return *this; } @@ -442,7 +442,7 @@ KDStream& KDStream::operator<<( const TQPoint& point ) */ KDStream& KDStream::operator<<( const TQSize& size ) { - _output += TQString::fromLatin1("%1x%2").tqarg(size.width()).tqarg(size.height()); + _output += TQString::fromLatin1("%1x%2").arg(size.width()).arg(size.height()); return *this; } @@ -455,12 +455,12 @@ KDStream& KDStream::operator<<( const TQRect& rect ) TQString xplus = (rect.x() >= 0) ? TQString::fromLatin1("+") : TQString::fromLatin1(""); TQString yplus = (rect.y() >= 0) ? TQString::fromLatin1("+") : TQString::fromLatin1(""); _output += TQString::fromLatin1("%1x%2%3%4%5%6") - .tqarg( rect.width() ) - .tqarg( rect.height() ) - .tqarg( xplus ) - .tqarg( rect.x() ) - .tqarg( yplus ) - .tqarg( rect.y() ); + .arg( rect.width() ) + .arg( rect.height() ) + .arg( xplus ) + .arg( rect.x() ) + .arg( yplus ) + .arg( rect.y() ); return *this; } @@ -609,7 +609,7 @@ KDStream& KDStream::operator<<( const TQBrush& brush) case TQt::DiagCrossPattern: style = TQString::fromLatin1("DiagCrossPattern"); break; case TQt::CustomPattern: style = TQString::fromLatin1("CustomPattern"); break; } - _output += TQString::fromLatin1("TQBrush(%1,%2)").tqarg(style).tqarg(TQColor2Str(brush.color())); + _output += TQString::fromLatin1("TQBrush(%1,%2)").arg(style).arg(TQColor2Str(brush.color())); return *this; } @@ -644,7 +644,7 @@ KDStream& KDStream::operator<<( const TQSizePolicy& policy) } TQString hforw = policy.hasHeightForWidth() ? TQString::fromLatin1("true") : TQString::fromLatin1("false"); _output += TQString::fromLatin1("TQSizePolicy(hor=%1,ver=%2, hasHeightForWidth=%3)") - .tqarg(hor).tqarg(ver).tqarg(hforw); + .arg(hor).arg(ver).arg(hforw); return *this; } @@ -672,8 +672,8 @@ KDStream& KDStream::operator<<( const TQStrList& list ) KDStream& KDStream::operator<<( const TQPixmap& pixmap ) { _output += TQString("TQPixmap[null=%1,width=%2,heigth=%3,depth=%4,hasMask=%5,hasAlpha=%6]") - .tqarg(pixmap.isNull()).tqarg(pixmap.width()).tqarg(pixmap.height()) - .tqarg(pixmap.depth()).tqarg(pixmap.mask() != 0).tqarg(pixmap.hasAlpha() ); + .arg(pixmap.isNull()).arg(pixmap.width()).arg(pixmap.height()) + .arg(pixmap.depth()).arg(pixmap.mask() != 0).arg(pixmap.hasAlpha() ); return *this; } @@ -681,8 +681,8 @@ KDStream& KDStream::operator<<( const TQPixmap& pixmap ) KDStream& KDStream::operator<<( const TQImage& pixmap ) { _output += TQString("TQImage[null=%1,width=%2,heigth=%3,depth=%4,hasAlpha=%5]") - .tqarg(pixmap.isNull()).tqarg(pixmap.width()).tqarg(pixmap.height()) - .tqarg(pixmap.depth()).tqarg(pixmap.hasAlphaBuffer() ); + .arg(pixmap.isNull()).arg(pixmap.width()).arg(pixmap.height()) + .arg(pixmap.depth()).arg(pixmap.hasAlphaBuffer() ); return *this; } -- cgit v1.2.3