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 2.3
|
||||
import QtQuick.Layouts 1.3
|
||||
import Qt.labs.platform 1.1
|
||||
import "./imports"
|
||||
|
||||
ApplicationWindow {
|
||||
|
@ -11,6 +12,17 @@ ApplicationWindow {
|
|||
title: "Nim Status Client"
|
||||
visible: true
|
||||
|
||||
SystemTrayIcon {
|
||||
visible: true
|
||||
icon.source: "status-logo.png"
|
||||
|
||||
onActivated: {
|
||||
applicationWindow.show()
|
||||
applicationWindow.raise()
|
||||
applicationWindow.requestActivate()
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
id: rowLayout
|
||||
width: parent.width
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
Loading…
Reference in New Issue