Warning, /system/mycroft-gui/tests/statusIndicatorTest.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.5
0002 import QtQuick.Controls 2.4 as Controls
0003 import QtQuick.Layouts 1.3
0004 import Mycroft 1.0 as Mycroft
0005 import org.kde.kirigami 2.5 as Kirigami
0006 
0007 Row {
0008     Mycroft.StatusIndicator {
0009         id: indicator
0010     }
0011     ColumnLayout {
0012         Controls.Button {
0013             text: "Ok"
0014             onClicked: indicator.state = "ok"
0015         }
0016         Controls.Button {
0017             text: "Error"
0018             onClicked: indicator.state = "error"
0019         }
0020         Controls.Button {
0021             text: "Waiting"
0022             onClicked: indicator.state = "waiting"
0023         }
0024         Controls.Button {
0025             text: "Loading"
0026             onClicked: indicator.state = "loading"
0027         }
0028         Controls.Button {
0029             text: "Idle"
0030             onClicked: indicator.state = "idle"
0031         }
0032     }
0033 }
0034