Renaming preference dialog variable

This commit is contained in:
Brad Davis 2016-01-28 10:29:21 -08:00
parent 18d6a09dc9
commit 04e6a5360a
2 changed files with 5 additions and 5 deletions

View file

@ -66,7 +66,7 @@ Window {
if (sections.length) { if (sections.length) {
sections[0].expanded = true; sections[0].expanded = true;
if (sections.length === 1) { if (sections.length === 1) {
sections[0].expandable = false sections[0].collapsable = false
} }
} }
} }

View file

@ -7,7 +7,7 @@ import "."
Preference { Preference {
id: root id: root
property bool expandable: true property bool collapsable: true
property bool expanded: false property bool expanded: false
property string name: "Header" property string name: "Header"
property real spacing: 8 property real spacing: 8
@ -43,10 +43,10 @@ Preference {
VrControls.FontAwesome { VrControls.FontAwesome {
id: toggle id: toggle
width: root.expandable ? height : 0 width: root.collapsable ? height : 0
anchors { left: parent.left; top: parent.top; margins: root.spacing } anchors { left: parent.left; top: parent.top; margins: root.spacing }
visible: root.expandable visible: root.collapsable
enabled: root.expandable enabled: root.collapsable
rotation: root.expanded ? 0 : -90 rotation: root.expanded ? 0 : -90
text: "\uf078" text: "\uf078"
Behavior on rotation { PropertyAnimation {} } Behavior on rotation { PropertyAnimation {} }