mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Add ability to reopen the ScreenPlay main window via trace icon
This commit is contained in:
parent
99500ba5c5
commit
f0ddae4c58
25
qml/main.qml
25
qml/main.qml
@ -3,16 +3,39 @@ import QtQuick.Window 2.2
|
||||
import QtQuick.Controls 2.1
|
||||
import QtQuick.Layouts 1.3
|
||||
import QtGraphicalEffects 1.0
|
||||
import Qt.labs.platform 1.0
|
||||
import "Components"
|
||||
|
||||
ApplicationWindow {
|
||||
id: window
|
||||
color: "#eeeeee"
|
||||
visible: true
|
||||
width: 1400
|
||||
width: 1383
|
||||
minimumHeight: 768
|
||||
minimumWidth: 1050
|
||||
|
||||
SystemTrayIcon {
|
||||
visible: true
|
||||
iconSource: "qrc:/assets/icons/favicon.ico"
|
||||
|
||||
|
||||
menu: Menu {
|
||||
MenuItem{
|
||||
text:qsTr("Open ScreenPlay")
|
||||
onTriggered: {
|
||||
window.show()
|
||||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Quit")
|
||||
onTriggered: Qt.quit()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Component.onCompleted: {
|
||||
setX(Screen.width / 2 - width / 2);
|
||||
setY(Screen.height / 2 - height / 2);
|
||||
|
Loading…
Reference in New Issue
Block a user