diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kmid/qslidertime.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmid/qslidertime.cpp')
-rw-r--r-- | kmid/qslidertime.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kmid/qslidertime.cpp b/kmid/qslidertime.cpp index 20349980..09975e25 100644 --- a/kmid/qslidertime.cpp +++ b/kmid/qslidertime.cpp @@ -22,19 +22,19 @@ ***************************************************************************/ #include "qslidertime.h" -#include <qwidget.h> -#include <qpainter.h> +#include <tqwidget.h> +#include <tqpainter.h> #include <stdio.h> #define ARROW_LENGTH 13 -QSliderTime::QSliderTime( QSlider *ksl, QWidget *parent, const char *name) - : QWidget (parent,name) +QSliderTime::QSliderTime( TQSlider *ksl, TQWidget *parent, const char *name) + : TQWidget (parent,name) { kslider=ksl; -QPainter painter; -QFontMetrics qfmt(painter.font()); +TQPainter painter; +TQFontMetrics qfmt(painter.font()); fontheight=qfmt.height(); } @@ -50,9 +50,9 @@ char *QSliderTime::formatMillisecs(int ms,char *tmp) return tmp; } -void QSliderTime::paintEvent( QPaintEvent * ) +void QSliderTime::paintEvent( TQPaintEvent * ) { - QPainter painter(this); + TQPainter painter(this); // erase(); drawTimeMarks(&painter); @@ -70,12 +70,12 @@ if (t<=2000) t=2000; return t; } -void QSliderTime::drawTimeMarks(QPainter *painter) +void QSliderTime::drawTimeMarks(TQPainter *painter) { if (kslider==NULL) return; int i; int maxV = kslider->maxValue(); - QFontMetrics qfmt(painter->font()); + TQFontMetrics qfmt(painter->font()); fontheight=qfmt.height(); int ntimetags = width()/(qfmt.width("-88:88-")); int timestep; @@ -108,13 +108,13 @@ if (kslider==NULL) return; } -QSize QSliderTime::sizeHint() +TQSize QSliderTime::sizeHint() { - return QSize(10,fontheight+2); + return TQSize(10,fontheight+2); } -QSizePolicy QSliderTime::sizePolicy() +TQSizePolicy QSliderTime::sizePolicy() { - return QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed); + return TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Fixed); } #include "qslidertime.moc" |