From ebcb1d80bf517aceb69778e1e9f67e5f4da8c484 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 28 Jul 2012 15:50:52 -0500 Subject: Fix build warnings Thanks to Bruce Sass for the patch! --- src/widgets/qscrollbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/qscrollbar.cpp') diff --git a/src/widgets/qscrollbar.cpp b/src/widgets/qscrollbar.cpp index 9a5e8f4..5ffe7e9 100644 --- a/src/widgets/qscrollbar.cpp +++ b/src/widgets/qscrollbar.cpp @@ -643,7 +643,7 @@ void QScrollBar::mousePressEvent( QMouseEvent *e ) pressedControl == QStyle::SC_ScrollBarSubPage || pressedControl == QStyle::SC_ScrollBarSlider ) && ((midButtonAbsPos && e->button() == MidButton) || - style().styleHint(QStyle::SH_ScrollBar_LeftClickAbsolutePosition) && e->button() == LeftButton)) { + (style().styleHint(QStyle::SH_ScrollBar_LeftClickAbsolutePosition) && e->button() == LeftButton)) ) { QRect sr = style().querySubControlMetrics(QStyle::CC_ScrollBar, this, QStyle::SC_ScrollBarSlider ), -- cgit v1.2.1