mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 14:48:15 +00:00
feat(Paned): supports a defaultClosed property
This commit is contained in:
parent
46a9e88c84
commit
cf031ea434
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue