diff options
author | Markku Heikkila <markku.heikkila@digia.com> | 2011-11-11 13:35:23 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-11-11 13:35:23 (GMT) |
commit | df819cfe17f6dfd089096063524932fc4975804f (patch) | |
tree | 99509989bc58170deda5694ce03fef58ce8f73f1 /src/gui/widgets/qgroupbox.cpp | |
parent | ee3f763f3642d1a098e6293fbc586b34a3e6e8be (diff) | |
download | Qt-df819cfe17f6dfd089096063524932fc4975804f.zip Qt-df819cfe17f6dfd089096063524932fc4975804f.tar.gz Qt-df819cfe17f6dfd089096063524932fc4975804f.tar.bz2 |
Fixed wrong QGroupBox check state
Handle mouserelease only if mouse is pressed in QGroupBox.
Task-number: QTBUG-19170
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/gui/widgets/qgroupbox.cpp')
-rw-r--r-- | src/gui/widgets/qgroupbox.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/qgroupbox.cpp b/src/gui/widgets/qgroupbox.cpp index 56fb2dd..db068cf 100644 --- a/src/gui/widgets/qgroupbox.cpp +++ b/src/gui/widgets/qgroupbox.cpp @@ -733,6 +733,10 @@ void QGroupBox::mouseReleaseEvent(QMouseEvent *event) } Q_D(QGroupBox); + if (!d->overCheckBox) { + event->ignore(); + return; + } QStyleOptionGroupBox box; initStyleOption(&box); QStyle::SubControl released = style()->hitTestComplexControl(QStyle::CC_GroupBox, &box, |