diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqspinwidget.cpp')
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqspinwidget.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqspinwidget.cpp b/tqtinterface/qt4/src/widgets/tqspinwidget.cpp index 1fc4407..f035c13 100644 --- a/tqtinterface/qt4/src/widgets/tqspinwidget.cpp +++ b/tqtinterface/qt4/src/widgets/tqspinwidget.cpp @@ -141,9 +141,9 @@ void TQSpinWidget::mousePressEvent( TQMouseEvent *e ) uint oldButtonDown = d->buttonDown; - if ( d->down.tqcontains( e->pos() ) && d->downEnabled ) + if ( d->down.contains( e->pos() ) && d->downEnabled ) d->buttonDown = 1; - else if ( d->up.tqcontains( e->pos() ) && d->upEnabled ) + else if ( d->up.contains( e->pos() ) && d->upEnabled ) d->buttonDown = 2; else d->buttonDown = 0; @@ -269,19 +269,19 @@ void TQSpinWidget::mouseMoveEvent( TQMouseEvent *e ) return; uint oldButtonDown = d->theButton; - if ( oldButtonDown & 1 && !d->down.tqcontains( e->pos() ) ) { + if ( oldButtonDown & 1 && !d->down.contains( e->pos() ) ) { d->stopTimer(); d->theButton = 0; tqrepaint( d->down, FALSE ); - } else if ( oldButtonDown & 2 && !d->up.tqcontains( e->pos() ) ) { + } else if ( oldButtonDown & 2 && !d->up.contains( e->pos() ) ) { d->stopTimer(); d->theButton = 0; tqrepaint( d->up, FALSE ); - } else if ( !oldButtonDown && d->up.tqcontains( e->pos() ) && d->buttonDown & 2 ) { + } else if ( !oldButtonDown && d->up.contains( e->pos() ) && d->buttonDown & 2 ) { d->startTimer( 500 ); d->theButton = 2; tqrepaint( d->up, FALSE ); - } else if ( !oldButtonDown && d->down.tqcontains( e->pos() ) && d->buttonDown & 1 ) { + } else if ( !oldButtonDown && d->down.contains( e->pos() ) && d->buttonDown & 1 ) { d->startTimer( 500 ); d->theButton = 1; tqrepaint( d->down, FALSE ); |