show app on systray
This commit is contained in:
parent
5c3b240cef
commit
122d102294
12
main.qml
12
main.qml
|
@ -2,6 +2,7 @@ import QtQuick 2.3
|
||||||
import QtQuick.Controls 1.3
|
import QtQuick.Controls 1.3
|
||||||
import QtQuick.Controls 2.3
|
import QtQuick.Controls 2.3
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
|
import Qt.labs.platform 1.1
|
||||||
import "./imports"
|
import "./imports"
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
|
@ -11,6 +12,17 @@ ApplicationWindow {
|
||||||
title: "Nim Status Client"
|
title: "Nim Status Client"
|
||||||
visible: true
|
visible: true
|
||||||
|
|
||||||
|
SystemTrayIcon {
|
||||||
|
visible: true
|
||||||
|
icon.source: "status-logo.png"
|
||||||
|
|
||||||
|
onActivated: {
|
||||||
|
applicationWindow.show()
|
||||||
|
applicationWindow.raise()
|
||||||
|
applicationWindow.requestActivate()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rowLayout
|
id: rowLayout
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
Loading…
Reference in New Issue