diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-07-08 14:23:21 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-07-08 14:23:21 (GMT) |
commit | 48f049d6fbddd60d99fb6ebc15fd5b52a3b515ec (patch) | |
tree | 7dc2bc75abecafc56f5c1f15970b7b257f7074ee /src | |
parent | ed4c85c33683ce541590639f19adcef8dcd001a8 (diff) | |
download | Qt-48f049d6fbddd60d99fb6ebc15fd5b52a3b515ec.zip Qt-48f049d6fbddd60d99fb6ebc15fd5b52a3b515ec.tar.gz Qt-48f049d6fbddd60d99fb6ebc15fd5b52a3b515ec.tar.bz2 |
Update QGroupBox on focus
We cannot assume the position of the decorations when a QGroupBox get
the focus.
Task-number: 257660
Reviewed-by: Thierry
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/qgroupbox.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/widgets/qgroupbox.cpp b/src/gui/widgets/qgroupbox.cpp index fe882a6..022c377 100644 --- a/src/gui/widgets/qgroupbox.cpp +++ b/src/gui/widgets/qgroupbox.cpp @@ -479,11 +479,7 @@ void QGroupBox::focusInEvent(QFocusEvent *fe) if (focusPolicy() == Qt::NoFocus) { d->_q_fixFocus(fe->reason()); } else { - QStyleOptionGroupBox box; - initStyleOption(&box); - QRect rect = style()->subControlRect(QStyle::CC_GroupBox, &box, QStyle::SC_GroupBoxCheckBox, this) - | style()->subControlRect(QStyle::CC_GroupBox, &box, QStyle::SC_GroupBoxLabel, this); - update(rect); + QWidget::focusInEvent(fe); } } |