From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkscan/sizeindicator.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libkscan/sizeindicator.cpp') diff --git a/libkscan/sizeindicator.cpp b/libkscan/sizeindicator.cpp index 4ad1986d..bd259bd3 100644 --- a/libkscan/sizeindicator.cpp +++ b/libkscan/sizeindicator.cpp @@ -19,22 +19,22 @@ #include "sizeindicator.h" -#include -#include +#include +#include #include #include #include -#include +#include -SizeIndicator::SizeIndicator( QWidget *parent, long thres, long crit ) - :QLabel( parent ) +SizeIndicator::SizeIndicator( TQWidget *parent, long thres, long crit ) + :TQLabel( parent ) { sizeInByte = -1; - setFrameStyle( QFrame::Box | QFrame::Sunken ); - setMinimumWidth( fontMetrics().width( QString::fromLatin1("MMM.MM MB") )); + setFrameStyle( TQFrame::Box | TQFrame::Sunken ); + setMinimumWidth( fontMetrics().width( TQString::fromLatin1("MMM.MM MB") )); setCritical( crit ); threshold = thres; @@ -64,9 +64,9 @@ void SizeIndicator::setSizeInByte( long newSize ) sizeInByte = newSize; kdDebug(29000) << "New size in byte: " << newSize << endl ; - QString t; + TQString t; - QString unit = i18n( "%1 kB" ); + TQString unit = i18n( "%1 kB" ); double sizer = double(sizeInByte)/1024.0; // produces kiloBytes int precision = 1; int fwidth = 3; @@ -86,11 +86,11 @@ void SizeIndicator::setSizeInByte( long newSize ) -void SizeIndicator::drawContents( QPainter *p ) +void SizeIndicator::drawContents( TQPainter *p ) { - QSize s = size(); + TQSize s = size(); - QColor warnColor; + TQColor warnColor; if( sizeInByte >= threshold ) { @@ -104,7 +104,7 @@ void SizeIndicator::drawContents( QPainter *p ) warnColor, KImageEffect::CrossDiagonalGradient, 200,200 )); } /* Displaying the text */ - QString t = text(); + TQString t = text(); p->drawText( 0, 0, s.width(), s.height(), AlignHCenter | AlignVCenter, t); -- cgit v1.2.3