summaryrefslogtreecommitdiff
path: root/gui/components/Systray.qml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/components/Systray.qml')
-rw-r--r--gui/components/Systray.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/gui/components/Systray.qml b/gui/components/Systray.qml
new file mode 100644
index 0000000..6fb1046
--- /dev/null
+++ b/gui/components/Systray.qml
@@ -0,0 +1,27 @@
+import QtQuick 2.0
+import QtQuick.Controls 2.4
+import Qt.labs.platform 1.0 as Labs
+
+Labs.SystemTrayIcon {
+
+ visible: systrayVisible
+ property alias statusItem: statusItem
+
+ menu: Labs.Menu {
+
+ id: systrayMenu
+
+ Labs.MenuItem {
+ id: statusItem
+ text: qsTr("Checking status…")
+ enabled: false
+ }
+
+ Labs.MenuSeparator {}
+
+ Labs.MenuItem {
+ text: qsTr("Quit")
+ onTriggered: backend.quit()
+ }
+ }
+}