summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/qfileopenevent/main.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-06 12:05:30 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-09 09:41:33 +0100
commit9255820ad591645897d261b795b5649b8d9a313f (patch)
treeb0df3423ea437aa70f6ddf68b6fcdae0c7987280 /src/gui/doc/snippets/qfileopenevent/main.cpp
parent06f60b24e23a9aa6640608f6010137ed75e2841e (diff)
Handle tab order inception
If a composite widget is put behind one of it's contained children via QWidget::setTabOrder, then our logic might replace the composite widget with the contained child. In that case, we'd end up with a broken tab chain, possibly resulting in incomplete clean-ups and triggering asserts when shutting down the UI. Handle this by stopping the last-child searching logic at the respective other widget, and by not allowing both widgets to be the same. Augment test case, and apply some minor refactoring to the code. Pick-to: 6.5 6.2 Change-Id: I7d97dfa85315b6c01daa283253025d94a1727048 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/qfileopenevent/main.cpp')
0 files changed, 0 insertions, 0 deletions