Style audio stats dialog button

This commit is contained in:
David Rowe 2017-03-03 17:46:12 +13:00
parent b31cf23c8d
commit 55963c4418

View file

@ -12,21 +12,21 @@ import QtQuick 2.5
import QtQuick.Controls 1.4 import QtQuick.Controls 1.4
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../../../resources/qml/controls-uit" as HifiControls
Column { Column {
id: stats id: stats
width: parent.width width: parent.width
property bool showGraphs: toggleGraphs.checked property bool showGraphs: toggleGraphs.checked
RowLayout { Item {
width: parent.width width: parent.width
height: 30 height: 30
Button { HifiControls.Button {
id: toggleGraphs id: toggleGraphs
property bool checked: false property bool checked: false
anchors.horizontalCenter: parent.horizontalCenter
Layout.alignment: Qt.AlignCenter
text: checked ? "Hide graphs" : "Show graphs" text: checked ? "Hide graphs" : "Show graphs"
onClicked: function() { checked = !checked; } onClicked: function() { checked = !checked; }
} }