diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-22 13:59:58 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-22 14:01:00 (GMT) |
commit | e2aa651aba89bcc409dd090466b04036277a9a7c (patch) | |
tree | 251c32e4fa81e0ac9250a442ba0ea9c57dd5512d /src/gui/styles/qcleanlooksstyle.cpp | |
parent | 1a55f40b6223511d0eb388064597ab38a0d37627 (diff) | |
download | Qt-e2aa651aba89bcc409dd090466b04036277a9a7c.zip Qt-e2aa651aba89bcc409dd090466b04036277a9a7c.tar.gz Qt-e2aa651aba89bcc409dd090466b04036277a9a7c.tar.bz2 |
Compile on embedded
Diffstat (limited to 'src/gui/styles/qcleanlooksstyle.cpp')
-rw-r--r-- | src/gui/styles/qcleanlooksstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qcleanlooksstyle.cpp b/src/gui/styles/qcleanlooksstyle.cpp index ccf81cb..8f88781 100644 --- a/src/gui/styles/qcleanlooksstyle.cpp +++ b/src/gui/styles/qcleanlooksstyle.cpp @@ -1746,7 +1746,7 @@ void QCleanlooksStyle::drawControl(ControlElement element, const QStyleOption *o int maxWidth = rect.width() - 4; int minWidth = 4; qreal progress = qMax(bar->progress, bar->minimum); // workaround for bug in QProgressBar - int progressBarWidth = (progress - bar->minimum) * qreal(maxWidth) / qMax(1.0, qreal(bar->maximum) - bar->minimum); + int progressBarWidth = (progress - bar->minimum) * qreal(maxWidth) / qMax(qreal(1.0), qreal(bar->maximum) - bar->minimum); int width = indeterminate ? maxWidth : qMax(minWidth, progressBarWidth); bool reverse = (!vertical && (bar->direction == Qt::RightToLeft)) || vertical; |