diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-08-11 13:32:56 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-08-11 13:39:12 (GMT) |
commit | dcdbb81f28bc8fc4bb7fedf78421e473413da1a7 (patch) | |
tree | dd94e5c076901da1d6f0d19ec192550f6b067a8d /src/gui/styles | |
parent | d82ab0709286f6b6816064affee4705d821830ec (diff) | |
download | Qt-dcdbb81f28bc8fc4bb7fedf78421e473413da1a7.zip Qt-dcdbb81f28bc8fc4bb7fedf78421e473413da1a7.tar.gz Qt-dcdbb81f28bc8fc4bb7fedf78421e473413da1a7.tar.bz2 |
Fix reversed progress bars on Vista
This issue seems to be caused by change a6782030 and was
caused by incorrectly applying paranthesis to the expression.
Task-number: 259515
Reviewed-by: joao
Diffstat (limited to 'src/gui/styles')
-rw-r--r-- | src/gui/styles/qwindowsvistastyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qwindowsvistastyle.cpp b/src/gui/styles/qwindowsvistastyle.cpp index a54c701..3789854 100644 --- a/src/gui/styles/qwindowsvistastyle.cpp +++ b/src/gui/styles/qwindowsvistastyle.cpp @@ -1094,7 +1094,7 @@ void QWindowsVistaStyle::drawControl(ControlElement element, const QStyleOption XPThemeData theme(widget, painter, QLatin1String("PROGRESS"), vertical ? PP_FILLVERT : PP_FILL); theme.rect = option->rect; - bool reverse = bar->direction == (Qt::LeftToRight && inverted) || (bar->direction == Qt::RightToLeft && !inverted); + bool reverse = (bar->direction == Qt::LeftToRight && inverted) || (bar->direction == Qt::RightToLeft && !inverted); QTime current = QTime::currentTime(); if (isIndeterminate) { |