diff options
author | jasplin <qt-info@nokia.com> | 2009-06-24 06:51:26 (GMT) |
---|---|---|
committer | jasplin <qt-info@nokia.com> | 2009-06-24 06:55:57 (GMT) |
commit | 84b5bd06dcc7c51d5b13f340aafd9797e1722c2e (patch) | |
tree | 1ceb11cf6b16da1f98270023e5448942014d3f22 /src/gui/widgets/qspinbox.cpp | |
parent | aca09d2b5038ed193d198f4097b17051f5f94116 (diff) | |
download | Qt-84b5bd06dcc7c51d5b13f340aafd9797e1722c2e.zip Qt-84b5bd06dcc7c51d5b13f340aafd9797e1722c2e.tar.gz Qt-84b5bd06dcc7c51d5b13f340aafd9797e1722c2e.tar.bz2 |
Fixed sizeHint update bug in QSpinBox.
QSpinBox failed to recalculate its cached size hint
when setting the range, prefix, or suffix.
Reviewed-by: janarve
Task-number: 255051
Diffstat (limited to 'src/gui/widgets/qspinbox.cpp')
-rw-r--r-- | src/gui/widgets/qspinbox.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/qspinbox.cpp b/src/gui/widgets/qspinbox.cpp index 1c2ae0d..e069a21 100644 --- a/src/gui/widgets/qspinbox.cpp +++ b/src/gui/widgets/qspinbox.cpp @@ -284,6 +284,9 @@ void QSpinBox::setPrefix(const QString &prefix) d->prefix = prefix; d->updateEdit(); + + d->cachedSizeHint = QSize(); + updateGeometry(); } /*! @@ -318,6 +321,9 @@ void QSpinBox::setSuffix(const QString &suffix) d->suffix = suffix; d->updateEdit(); + + d->cachedSizeHint = QSize(); + updateGeometry(); } /*! |