From 70ca9e26898cd6e7d9dc0939dd7793ae1020c54f Mon Sep 17 00:00:00 2001 From: Thierry Bastian Date: Wed, 7 Jul 2010 17:11:39 +0200 Subject: Fixes the double spinbox not updating geometry when suffix is changed patch was found in the task and looks good. Task-number: QTBUG-9530 --- src/gui/widgets/qspinbox.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); } /*! -- cgit v0.12