mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +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) {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {} }
|
||||||
|
|
Loading…
Reference in a new issue