diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-05-15 18:24:40 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-05-16 20:17:06 +0200 |
| commit | 35cdd8abf69b57408de45643eb4de161773149f2 (patch) | |
| tree | 7244c372a28829d2217924fae6fc56700a20e2c2 /src/sql/kernel/qsqldatabase.cpp | |
| parent | 68ceb847d6f780b14eabb95f26f8c2a78d13113d (diff) | |
Widgets: Don't assume layout handles safe area margins if widget opts out
As an optimization when calculating the safe area margins for child
widgets we look at the parent hierarchy, and if we find a widget that
is in a layout, and that layout respects the widget's contents rect,
we assume the safe area margins are accounted for already.
But this relies on the widget the layout is operating on to not opt out
of the safe area margins affecting the contents rect. If it does, the
layout can't help us, and we need to fall back to computing the child
widget's safe area margins.
Task-number: QTBUG-125345
Change-Id: I2e2f7d292d2b2c3ecd2e2e95316c4d72b92db5d6
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/sql/kernel/qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
