summaryrefslogtreecommitdiffstats
path: root/libkscan/sizeindicator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /libkscan/sizeindicator.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkscan/sizeindicator.cpp')
-rw-r--r--libkscan/sizeindicator.cpp26
1 files changed, 13 insertions, 13 deletions
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 <qpalette.h>
-#include <qimage.h>
+#include <tqpalette.h>
+#include <tqimage.h>
#include <kimageeffect.h>
#include <klocale.h>
#include <kdebug.h>
-#include <qpainter.h>
+#include <tqpainter.h>
-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);