mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 07:32:10 +02:00
rectifying toggle graph behavior
This commit is contained in:
parent
78001a4e31
commit
b020e17ee7
1 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ import "qrc:////qml//controls-uit" as HifiControls
|
|||
Column {
|
||||
id: stats
|
||||
width: parent.width
|
||||
property bool showGraphs: toggleGraphs.checked
|
||||
property alias showGraphs: toggleGraphs.toggle
|
||||
|
||||
Item {
|
||||
width: parent.width
|
||||
|
@ -25,10 +25,10 @@ Column {
|
|||
|
||||
HifiControls.Button {
|
||||
id: toggleGraphs
|
||||
checked: false
|
||||
property bool toggle: false
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: checked ? "Hide graphs" : "Show graphs"
|
||||
onClicked: function() { checked = !checked; }
|
||||
text: toggle ? "Hide graphs" : "Show graphs"
|
||||
onClicked: { toggle = !toggle;}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue