blob: 6fb1046707d3d88ca55c0504961a2d5a97916427 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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()
}
}
}
|