summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-07-07 15:11:39 (GMT)
committerQt Commercial Integration <QtCommercial@digia.com>2012-01-31 10:25:06 (GMT)
commit70ca9e26898cd6e7d9dc0939dd7793ae1020c54f (patch)
tree8ef4f552571f4eba5a03c4dff7170f5ef94d2a09
parent9201d46a2409f296d2f508c9ba940333c6db398f (diff)
downloadQt-70ca9e26898cd6e7d9dc0939dd7793ae1020c54f.zip
Qt-70ca9e26898cd6e7d9dc0939dd7793ae1020c54f.tar.gz
Qt-70ca9e26898cd6e7d9dc0939dd7793ae1020c54f.tar.bz2
Fixes the double spinbox not updating geometry when suffix is changed
patch was found in the task and looks good. Task-number: QTBUG-9530
-rw-r--r--src/gui/widgets/qspinbox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qspinbox.cpp b/src/gui/widgets/qspinbox.cpp
index e8382ed..952f9e2 100644
--- a/src/gui/widgets/qspinbox.cpp
+++ b/src/gui/widgets/qspinbox.cpp
@@ -697,6 +697,9 @@ void QDoubleSpinBox::setSuffix(const QString &suffix)
d->suffix = suffix;
d->updateEdit();
+
+ d->cachedSizeHint = QSize();
+ updateGeometry();
}
/*!