mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +02:00
Style audio stats dialog button
This commit is contained in:
parent
b31cf23c8d
commit
55963c4418
1 changed files with 5 additions and 5 deletions
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue