summaryrefslogtreecommitdiffstats
path: root/src/widgets/qslider.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-28 15:51:58 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-28 15:51:58 -0500
commitfe7969ef886d7287fa959929ddd33fbad8407884 (patch)
tree589aacc109d27561a5188bb46bce27c78bad8f5b /src/widgets/qslider.cpp
parentdba8a853b65e5707e48450e5085e0ff0513b4203 (diff)
downloadtqt3-fe7969ef886d7287fa959929ddd33fbad8407884.tar.gz
tqt3-fe7969ef886d7287fa959929ddd33fbad8407884.zip
Automated update from Qt3
Diffstat (limited to 'src/widgets/qslider.cpp')
-rw-r--r--src/widgets/qslider.cpp8
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();