From b1057f437bf65300831a0ccb45b920787c6b318d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 06:00:15 +0000 Subject: 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 --- kmix/kledbutton.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kmix/kledbutton.cpp') diff --git a/kmix/kledbutton.cpp b/kmix/kledbutton.cpp index e0a7bff1..0145d4c4 100644 --- a/kmix/kledbutton.cpp +++ b/kmix/kledbutton.cpp @@ -24,17 +24,17 @@ #include "kledbutton.h" -KLedButton::KLedButton(const TQColor &col, TQWidget *parent, const char *name) - : KLed( col, parent, name ) +KLedButton::KLedButton(const TQColor &col, TQWidget *tqparent, const char *name) + : KLed( col, tqparent, name ) { - // KLed and thus KLedButtung does not do proper positioning in QLayout's. + // KLed and thus KLedButtung does not do proper positioning in TQLayout's. // Thus I will do a dirty trick here - installEventFilter(parent); + installEventFilter(tqparent); } 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 ) + KLed::Shape tqshape, TQWidget *tqparent, const char *name) + : KLed( col, st, look, tqshape, tqparent, name ) { } @@ -44,7 +44,7 @@ KLedButton::~KLedButton() void KLedButton::mousePressEvent( TQMouseEvent *e ) { - if (e->button() == LeftButton) + if (e->button() == Qt::LeftButton) { toggle(); emit stateChanged( state() ); @@ -52,8 +52,8 @@ void KLedButton::mousePressEvent( TQMouseEvent *e ) } 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 + // KLed and thus KLedButtung does not do proper positioning in TQLayout's. + // Thus I listen to my tqparents resize events and do it here ... OUCH, that's ugly /* No, this cannot work ! if ( ev->type() == TQEvent::Resize ) { TQResizeEvent* qre = (TQResizeEvent*)ev; @@ -66,7 +66,7 @@ bool KLedButton::eventFilter( TQObject* /*obj*/ , TQEvent* /*ev*/ ) { } -TQSize KLedButton::sizeHint() const +TQSize KLedButton::tqsizeHint() const { return size(); } -- cgit v1.2.1