aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2024-12-14 14:00:18 +0100
committerTor Arne Vestbø <[email protected]>2024-12-18 20:37:22 +0100
commit7c968ac1512b8eede38f213708f314701547c784 (patch)
treec0d72c0314945868cce050bf9874eeff8dce056e /src/quickcontrols
parentf7c63b4be4ea09084b1fd2316f44067254ee1a5b (diff)
Reflect Pane.content{Width,Height} through implicitContent{Width,Height}
When a Pane does not have an explicit content size set, we pick up the content size from the implicit content size, so the two are in sync. However, if an explicit content size is set, we were failing to reflect this through the control's implicit content size, which means that any client of Pane can not treat it as a plain Control, reading its implicit content size to do layouting. We now keep the two values in sync, even when an explicit content size has been set. As a drive-by this also fixed a bug in QQuickPane::resetContentWidth() where we would unset hasContentHeight instead of hasContentWidth. Pick-to: 6.9 Change-Id: If24b15bef51d3841932d2bf6d645087ccca677a9 Reviewed-by: Mitch Curtis <[email protected]> Reviewed-by: Richard Moe Gustavsen <[email protected]>
Diffstat (limited to 'src/quickcontrols')
0 files changed, 0 insertions, 0 deletions