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 --- kmix/kledbutton.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kmix/kledbutton.cpp') diff --git a/kmix/kledbutton.cpp b/kmix/kledbutton.cpp index f788f8ea..e0a7bff1 100644 --- a/kmix/kledbutton.cpp +++ b/kmix/kledbutton.cpp @@ -19,12 +19,12 @@ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include "kledbutton.h" -KLedButton::KLedButton(const QColor &col, QWidget *parent, const char *name) +KLedButton::KLedButton(const TQColor &col, TQWidget *parent, const char *name) : KLed( col, parent, name ) { // KLed and thus KLedButtung does not do proper positioning in QLayout's. @@ -32,8 +32,8 @@ KLedButton::KLedButton(const QColor &col, QWidget *parent, const char *name) installEventFilter(parent); } -KLedButton::KLedButton(const QColor& col, KLed::State st, KLed::Look look, - KLed::Shape shape, QWidget *parent, const char *name) +KLedButton::KLedButton(const TQColor& col, KLed::State st, KLed::Look look, + KLed::Shape shape, TQWidget *parent, const char *name) : KLed( col, st, look, shape, parent, name ) { } @@ -42,7 +42,7 @@ KLedButton::~KLedButton() { } -void KLedButton::mousePressEvent( QMouseEvent *e ) +void KLedButton::mousePressEvent( TQMouseEvent *e ) { if (e->button() == LeftButton) { @@ -51,12 +51,12 @@ void KLedButton::mousePressEvent( QMouseEvent *e ) } } -bool KLedButton::eventFilter( QObject* /*obj*/ , QEvent* /*ev*/ ) { +bool KLedButton::eventFilter( TQObject* /*obj*/ , TQEvent* /*ev*/ ) { // KLed and thus KLedButtung does not do proper positioning in QLayout's. // Thus I listen to my parents resize events and do it here ... OUCH, that's ugly /* No, this cannot work ! - if ( ev->type() == QEvent::Resize ) { - QResizeEvent* qre = (QResizeEvent*)ev; + if ( ev->type() == TQEvent::Resize ) { + TQResizeEvent* qre = (TQResizeEvent*)ev; this->move( qre->size().width() - width()/2, qre->size().height() - height()/2 ); } @@ -66,14 +66,14 @@ bool KLedButton::eventFilter( QObject* /*obj*/ , QEvent* /*ev*/ ) { } -QSize KLedButton::sizeHint() const +TQSize KLedButton::sizeHint() const { return size(); } -QSizePolicy KLedButton::sizePolicy () const +TQSizePolicy KLedButton::sizePolicy () const { - return QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); + return TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); } #include "kledbutton.moc" -- cgit v1.2.1