diff options
author | aavit <qt-info@nokia.com> | 2011-10-21 07:59:50 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2011-10-21 07:59:50 (GMT) |
commit | cda84350a3e38d7a35e6341720e3e353803b8dea (patch) | |
tree | 240ba38d683ad1256ca7ddd54f51bf6f21962056 /src/gui/widgets/qprogressbar.cpp | |
parent | e5098123c12880d922923d1117f7b82995c6b5a0 (diff) | |
parent | 4673878256262802c07303fce1e1f8cc1b7e652b (diff) | |
download | Qt-cda84350a3e38d7a35e6341720e3e353803b8dea.zip Qt-cda84350a3e38d7a35e6341720e3e353803b8dea.tar.gz Qt-cda84350a3e38d7a35e6341720e3e353803b8dea.tar.bz2 |
Merge remote-tracking branch 'qt-fire-review/master'
Diffstat (limited to 'src/gui/widgets/qprogressbar.cpp')
-rw-r--r-- | src/gui/widgets/qprogressbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qprogressbar.cpp b/src/gui/widgets/qprogressbar.cpp index dd92bda..1b0a1a1 100644 --- a/src/gui/widgets/qprogressbar.cpp +++ b/src/gui/widgets/qprogressbar.cpp @@ -462,7 +462,7 @@ QString QProgressBar::text() const return result; } - int progress = (qreal(d->value) - d->minimum) * 100.0 / totalSteps; + int progress = (qreal(d->value) - d->minimum) * qreal(100.0) / totalSteps; result.replace(QLatin1String("%p"), QString::number(progress)); return result; } |