summaryrefslogtreecommitdiffstats
path: root/libkscan/sizeindicator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /libkscan/sizeindicator.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkscan/sizeindicator.cpp')
-rw-r--r--libkscan/sizeindicator.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libkscan/sizeindicator.cpp b/libkscan/sizeindicator.cpp
index bd259bd3..3b0a2a18 100644
--- a/libkscan/sizeindicator.cpp
+++ b/libkscan/sizeindicator.cpp
@@ -29,12 +29,12 @@
-SizeIndicator::SizeIndicator( TQWidget *parent, long thres, long crit )
- :TQLabel( parent )
+SizeIndicator::SizeIndicator( TQWidget *tqparent, long thres, long crit )
+ :TQLabel( tqparent )
{
sizeInByte = -1;
setFrameStyle( TQFrame::Box | TQFrame::Sunken );
- setMinimumWidth( fontMetrics().width( TQString::fromLatin1("MMM.MM MB") ));
+ setMinimumWidth( fontMetrics().width( TQString::tqfromLatin1("MMM.MM MB") ));
setCritical( crit );
threshold = thres;
@@ -79,7 +79,7 @@ void SizeIndicator::setSizeInByte( long newSize )
fwidth = 2;
}
- t = unit.arg( sizer, fwidth, 'f', precision);
+ t = unit.tqarg( sizer, fwidth, 'f', precision);
setText(t);
}
@@ -100,7 +100,7 @@ void SizeIndicator::drawContents( TQPainter *p )
warnColor.setHsv( 0, c, c );
p->drawImage( 0,0,
- KImageEffect::unbalancedGradient( s, colorGroup().background(),
+ KImageEffect::unbalancedGradient( s, tqcolorGroup().background(),
warnColor, KImageEffect::CrossDiagonalGradient, 200,200 ));
}
/* Displaying the text */