summaryrefslogtreecommitdiffstats
path: root/kmid/qslidertime.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /kmid/qslidertime.cpp
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmid/qslidertime.cpp')
-rw-r--r--kmid/qslidertime.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kmid/qslidertime.cpp b/kmid/qslidertime.cpp
index 09975e25..e7313d22 100644
--- a/kmid/qslidertime.cpp
+++ b/kmid/qslidertime.cpp
@@ -28,8 +28,8 @@
#define ARROW_LENGTH 13
-QSliderTime::QSliderTime( TQSlider *ksl, TQWidget *parent, const char *name)
- : TQWidget (parent,name)
+QSliderTime::QSliderTime( TQSlider *ksl, TQWidget *tqparent, const char *name)
+ : TQWidget (tqparent,name)
{
kslider=ksl;
@@ -90,25 +90,25 @@ if (kslider==NULL) return;
int pos=0;
int deltapos=0;
formatMillisecs(0,tmp);
- painter->drawText( 0, posy,tmp);
+ painter->drawText( 0, posy,TQString(tmp));
for ( i = timestep; i <= maxV - timestep; i += timestep )
{
pos = (width()-10) * i / maxV + 5;
formatMillisecs(i,tmp);
deltapos=qfmt.width(tmp)/2;
- painter->drawText( pos-deltapos, posy,tmp);
+ painter->drawText( pos-deltapos, posy,TQString(tmp));
}
pos = width()- 5;
formatMillisecs(maxV,tmp);
deltapos=qfmt.width(tmp);
- painter->drawText( pos-deltapos, posy,tmp);
+ painter->drawText( pos-deltapos, posy,TQString(tmp));
}
-TQSize QSliderTime::sizeHint()
+TQSize QSliderTime::tqsizeHint()
{
return TQSize(10,fontheight+2);
}