diff options
author | Darrell Anderson <[email protected]> | 2012-08-03 08:49:38 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-08-03 08:49:38 -0500 |
commit | 7d22e97622a6b963382b88aac6dfde06a2cd8f03 (patch) | |
tree | 231f5c31f279d3e798702fe61e9b6bcef52b089b /src/widgets/qslider.cpp | |
parent | 6d0157ea558089bb957f35263424a405e42a6931 (diff) | |
parent | fe7969ef886d7287fa959929ddd33fbad8407884 (diff) | |
download | tqt3-7d22e97622a6b963382b88aac6dfde06a2cd8f03.tar.gz tqt3-7d22e97622a6b963382b88aac6dfde06a2cd8f03.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
Diffstat (limited to 'src/widgets/qslider.cpp')
-rw-r--r-- | src/widgets/qslider.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/qslider.cpp b/src/widgets/qslider.cpp index bf5b74881..fd9dd15b5 100644 --- a/src/widgets/qslider.cpp +++ b/src/widgets/qslider.cpp @@ -447,8 +447,8 @@ void TQSlider::mousePressEvent( TQMouseEvent *e ) moveSlider( pos - slideLength / 2 ); state = Dragging; clickOffset = slideLength / 2; - } else if ( orient == Horizontal && e->pos().x() < r.left() //### goodPart - || orient == Vertical && e->pos().y() < r.top() ) { + } else if ( ( orient == Horizontal && e->pos().x() < r.left() ) //### goodPart + || ( orient == Vertical && e->pos().y() < r.top() ) ) { if ( orient == Horizontal && TQApplication::reverseLayout() ) { state = TimingUp; addPage(); @@ -460,8 +460,8 @@ void TQSlider::mousePressEvent( TQMouseEvent *e ) timer = new TQTimer( this ); connect( timer, SIGNAL(timeout()), SLOT(repeatTimeout()) ); timer->start( thresholdTime, TRUE ); - } else if ( orient == Horizontal && e->pos().x() > r.right() //### goodPart - || orient == Vertical && e->pos().y() > r.bottom() ) { + } else if ( ( orient == Horizontal && e->pos().x() > r.right() ) //### goodPart + || ( orient == Vertical && e->pos().y() > r.bottom() ) ) { if ( orient == Horizontal && TQApplication::reverseLayout() ) { state = TimingDown; subtractPage(); |