diff options
author | Tor Arne Vestbø <[email protected]> | 2024-12-16 11:54:40 +0100 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2024-12-18 20:37:27 +0100 |
commit | ae7a573fe9d74f8d8355ca95f66ba160fa176270 (patch) | |
tree | 8957c88a3dea4406fb1f06b74adb6c34787436ae /examples/quickcontrols/attachedstyleproperties/MyStyle | |
parent | 7c968ac1512b8eede38f213708f314701547c784 (diff) |
Compute implicitSize based on implicitContentSize in Pane and subclasses
Now that Pane reflects its explicitly set contentWidth/Height through
implicitContentWidth/Height we can use the same expression for implicit
width/height as regular controls, which hooks us into the safe area
binding loop detection as well.
Pick-to: 6.9
Change-Id: Ie31b740a1e405341fc5f0ed9673b213292e4afd9
Reviewed-by: Oliver Eftevaag <[email protected]>
Diffstat (limited to 'examples/quickcontrols/attachedstyleproperties/MyStyle')
-rw-r--r-- | examples/quickcontrols/attachedstyleproperties/MyStyle/ToolBar.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols/attachedstyleproperties/MyStyle/ToolBar.qml b/examples/quickcontrols/attachedstyleproperties/MyStyle/ToolBar.qml index b0cd597c87..98e09c6964 100644 --- a/examples/quickcontrols/attachedstyleproperties/MyStyle/ToolBar.qml +++ b/examples/quickcontrols/attachedstyleproperties/MyStyle/ToolBar.qml @@ -10,9 +10,9 @@ T.ToolBar { id: control implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, - contentWidth + leftPadding + rightPadding) + implicitContentWidth + leftPadding + rightPadding) implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, - contentHeight + topPadding + bottomPadding) + implicitContentHeight + topPadding + bottomPadding) background: Rectangle { implicitHeight: 40 |