summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qprogressbar.cpp
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-10-21 07:59:50 (GMT)
committeraavit <qt-info@nokia.com>2011-10-21 07:59:50 (GMT)
commitcda84350a3e38d7a35e6341720e3e353803b8dea (patch)
tree240ba38d683ad1256ca7ddd54f51bf6f21962056 /src/gui/widgets/qprogressbar.cpp
parente5098123c12880d922923d1117f7b82995c6b5a0 (diff)
parent4673878256262802c07303fce1e1f8cc1b7e652b (diff)
downloadQt-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.cpp2
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;
}