summaryrefslogtreecommitdiffstats
path: root/noatun/library/scrollinglabel.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/library/scrollinglabel.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-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 'noatun/library/scrollinglabel.cpp')
-rw-r--r--noatun/library/scrollinglabel.cpp28
1 files changed, 14 insertions, 14 deletions
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 <noatun/scrollinglabel.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qtimer.h>
-#include <qtooltip.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqtimer.h>
+#include <tqtooltip.h>
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