mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +02:00
Renaming preference dialog variable
This commit is contained in:
parent
18d6a09dc9
commit
04e6a5360a
2 changed files with 5 additions and 5 deletions
|
@ -66,7 +66,7 @@ Window {
|
|||
if (sections.length) {
|
||||
sections[0].expanded = true;
|
||||
if (sections.length === 1) {
|
||||
sections[0].expandable = false
|
||||
sections[0].collapsable = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ import "."
|
|||
|
||||
Preference {
|
||||
id: root
|
||||
property bool expandable: true
|
||||
property bool collapsable: true
|
||||
property bool expanded: false
|
||||
property string name: "Header"
|
||||
property real spacing: 8
|
||||
|
@ -43,10 +43,10 @@ Preference {
|
|||
|
||||
VrControls.FontAwesome {
|
||||
id: toggle
|
||||
width: root.expandable ? height : 0
|
||||
width: root.collapsable ? height : 0
|
||||
anchors { left: parent.left; top: parent.top; margins: root.spacing }
|
||||
visible: root.expandable
|
||||
enabled: root.expandable
|
||||
visible: root.collapsable
|
||||
enabled: root.collapsable
|
||||
rotation: root.expanded ? 0 : -90
|
||||
text: "\uf078"
|
||||
Behavior on rotation { PropertyAnimation {} }
|
||||
|
|
Loading…
Reference in a new issue