From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun/library/scrollinglabel.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'noatun/library/scrollinglabel.cpp') diff --git a/noatun/library/scrollinglabel.cpp b/noatun/library/scrollinglabel.cpp index d7bdd643..09d64678 100644 --- a/noatun/library/scrollinglabel.cpp +++ b/noatun/library/scrollinglabel.cpp @@ -22,10 +22,10 @@ #include -#include -#include -#include -#include +#include +#include +#include +#include class ScrollingLabel::Private { @@ -58,12 +58,12 @@ ScrollingLabel::ScrollingLabel QWidget * parent, const char * name ) - : QWidget(parent, name) + : TQWidget(parent, name) { d = new Private; - connect(&d->scrollTimer, SIGNAL(timeout()), this, SLOT(scroll())); - connect(&d->resetTimer, SIGNAL(timeout()), this, SLOT(restoreText())); + connect(&d->scrollTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(scroll())); + connect(&d->resetTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(restoreText())); setText(initialText); } @@ -74,7 +74,7 @@ ScrollingLabel::~ScrollingLabel() } void -ScrollingLabel::setText(const QString & t, int time) +ScrollingLabel::setText(const TQString & t, int time) { d->resetTimer.stop(); @@ -92,8 +92,8 @@ ScrollingLabel::setText(const QString & t, int time) _update(); } - QToolTip::remove(this); - QToolTip::add(this, d->text); + TQToolTip::remove(this); + TQToolTip::add(this, d->text); } void @@ -121,7 +121,7 @@ ScrollingLabel::_update() d->buf.resize(w, h); d->buf.fill(colorGroup().background()); - QPainter p(&d->buf); + TQPainter p(&d->buf); p.setFont(font()); p.drawText(0, fontMetrics().ascent(), d->text); @@ -132,14 +132,14 @@ ScrollingLabel::_update() } void -ScrollingLabel::paintEvent(QPaintEvent *) +ScrollingLabel::paintEvent(TQPaintEvent *) { bitBlt (this, 0, 0, &d->buf, d->pos, 0, d->pos + width(), height(), Qt::CopyROP); } void -ScrollingLabel::resizeEvent(QResizeEvent *) +ScrollingLabel::resizeEvent(TQResizeEvent *) { _update(); } @@ -174,7 +174,7 @@ ScrollingLabel::sizeHint() const QSize ScrollingLabel::minimumSizeHint() const { - return QSize(0, fontMetrics().height()); + return TQSize(0, fontMetrics().height()); } QString -- cgit v1.2.3