Fix MinGW compiler warning in qwindowsxpstyle.cpp.
qwindowsxpstyle.cpp: In static member function 'static QRect QWindowsXPStylePrivate::scrollBarGripperBounds(QStyle::State, const QWidget*, XPThemeData*)':styles\qwindowsxpstyle.cpp:2542:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses] Change-Id: I6a4b62057a612fa9234744e892950c959c513d15 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
parent
9ddcb7784a
commit
c508a9ddf2
@ -2540,7 +2540,7 @@ QRect QWindowsXPStylePrivate::scrollBarGripperBounds(QStyle::State flags, const
|
|||||||
|
|
||||||
const int hSpace = theme->rect.width() - size.width();
|
const int hSpace = theme->rect.width() - size.width();
|
||||||
const int vSpace = theme->rect.height() - size.height();
|
const int vSpace = theme->rect.height() - size.height();
|
||||||
const bool sufficientSpace = horizontal && hSpace > (contentsMargin.left() + contentsMargin.right())
|
const bool sufficientSpace = (horizontal && hSpace > (contentsMargin.left() + contentsMargin.right()))
|
||||||
|| vSpace > contentsMargin.top() + contentsMargin.bottom();
|
|| vSpace > contentsMargin.top() + contentsMargin.bottom();
|
||||||
return sufficientSpace ? QRect(theme->rect.topLeft() + QPoint(hSpace, vSpace) / 2, size) : QRect();
|
return sufficientSpace ? QRect(theme->rect.topLeft() + QPoint(hSpace, vSpace) / 2, size) : QRect();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user