Commit cf031ea4 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Paned): supports a `defaultClosed` property

parent 46a9e88c
......@@ -26,6 +26,7 @@ Item {
property alias childA: contentA.data
property alias childB: contentB.data
property bool defaultClosed
property int closingEdge: Qt.LeftEdge
// User limits: string or int values.
......@@ -209,7 +210,10 @@ Item {
_minimumLeftLimit = _parseLimit(minimumLeftLimit)
_minimumRightLimit = _parseLimit(minimumRightLimit)
_isClosed = defaultClosed
contentA.width = _getLimitValue(_minimumLeftLimit)
_applyLimits()
}
Item {
......
......@@ -28,6 +28,7 @@ Window {
childB: Paned {
anchors.fill: parent
closingEdge: Qt.RightEdge
defaultClosed: true
minimumLeftLimit: '40%'
minimumRightLimit: 200
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment