summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-07-07 15:11:39 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-07-07 15:12:53 (GMT)
commit96507cedbc6007bd8db81d82c051da86da5b0e4b (patch)
tree0803f17b85ca8bb541ed4d4b7ebe701402fae654 /src
parentf2077762cffba8c66cc3880c486161201421e074 (diff)
downloadQt-96507cedbc6007bd8db81d82c051da86da5b0e4b.zip
Qt-96507cedbc6007bd8db81d82c051da86da5b0e4b.tar.gz
Qt-96507cedbc6007bd8db81d82c051da86da5b0e4b.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
Diffstat (limited to 'src')
-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 2d871d0..10ce144 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();
}
/*!