Skip to content

Commit

Permalink
Provide a parent object to avoid warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Feb 4, 2025
1 parent cdf6b4d commit c5ea53f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/gz/gui/qml/GzSplit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ Item
anchors.fill: parent
anchors.rightMargin: scrollView.scrollBarWidth

readonly property double handleHeight: 6 //handle.createObject().implicitHeight
// Temporarily create the handle object to get its height. Use `helpers` as the parent
// to avoid warnings.
readonly property double handleHeight: handle.createObject(helpers).implicitHeight

// Establish a binding for contentHeight on the children's minimumHeight and maximumHeight,
// but not their height as doing so causes a subtle binding loop.
Expand Down

0 comments on commit c5ea53f

Please sign in to comment.