path: root/src/platformsupport/input/evdevtouch
diff options
authorVolker Hilsheimer <>2019-10-07 16:09:37 +0200
committerVolker Hilsheimer <>2019-10-11 13:53:49 +0200
commit1748dc3e2d2367f9f01666212a22e6b1dde5dc89 (patch)
tree6f206d7bd2142a5dc249e7d98611427ddaad8de1 /src/platformsupport/input/evdevtouch
parent81a790969395feff73fa600908822765e97424e5 (diff)
QGroupBox: always disable children in a checkable, unchecked groupbox
The childEvent handler sets the enabled property of children as they are added to the groupbox, but applications might later enable children and check/uncheck the groupbox's checkbox in undefined order. In that case, we would end up with enabled children inside a conceptually disabled groupbox (the groupbox's checkbox represents the logical "disabled" state), which breaks documented QWidget::enabled rules. To make sure that all children are disabled as per the state of the groupbox, we need to run that logic once the UI has been set up, and before it becomes visible. This is what polishing is for, so listen for that event in addition and handle it the same way as adding (which duplicates things, but keeps existing code that might depend on things being updated as they are added working). Adds the case to the existing enabledChildPropagation test case. [ChangeLog][QWidget][QGroupBox] Always disable children of a checkable, unchecked group box before showing. Change-Id: I978bd27b6f1a3f54ec745faeea529a98d0d93619 Fixes: QTBUG-25938 Reviewed-by: Shawn Rutledge <>
Diffstat (limited to 'src/platformsupport/input/evdevtouch')
0 files changed, 0 insertions, 0 deletions