diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-22 12:05:03 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-22 12:05:03 (GMT) |
commit | e3994b506c21b9967248ea404cfdfef82060c13e (patch) | |
tree | d18d98db738838d734447519467f78daf4470f81 /src/gui/widgets | |
parent | 27e5a1f9542b03a6930f002e8d7dafd97cf88a1a (diff) | |
download | Qt-e3994b506c21b9967248ea404cfdfef82060c13e.zip Qt-e3994b506c21b9967248ea404cfdfef82060c13e.tar.gz Qt-e3994b506c21b9967248ea404cfdfef82060c13e.tar.bz2 |
Show text even if maximum == 0
Diffstat (limited to 'src/gui/widgets')
-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 6b38e9f..6593cd6 100644 --- a/src/gui/widgets/qprogressbar.cpp +++ b/src/gui/widgets/qprogressbar.cpp @@ -443,7 +443,7 @@ QSize QProgressBar::minimumSizeHint() const QString QProgressBar::text() const { Q_D(const QProgressBar); - if (d->maximum == 0 || d->value < d->minimum + if ((d->maximum == 0 && d->minimum == 0) || d->value < d->minimum || (d->value == INT_MIN && d->minimum == INT_MIN)) return QString(); |