diff options
Diffstat (limited to 'kmix/kledbutton.cpp')
-rw-r--r-- | kmix/kledbutton.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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(); } |