1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 18:52:30 +01:00

Add new Tray icon audio and play functionallity

This commit is contained in:
kelteseth 2017-11-21 10:13:12 +01:00
parent 20d3ad061a
commit e50b94e63e

View File

@ -43,7 +43,38 @@ ApplicationWindow {
window.show()
}
}
MenuItem {
id:miMuteAll
property bool isMuted: false
text: qsTr("Mute all")
onTriggered: {
if(miMuteAll.isMuted){
isMuted = false
miMuteAll.text = qsTr("Mute all")
screenPlaySettings.setMuteAll(false)
}else{
isMuted = true
miMuteAll.text = qsTr("Unmute all")
screenPlaySettings.setMuteAll(true)
}
}
}
MenuItem {
id:miStopAll
property bool isPlaying: false
text: qsTr("Stop all")
onTriggered: {
if(miStopAll.isPlaying){
isPlaying = false
miStopAll.text = qsTr("Stop all")
screenPlaySettings.setPlayAll(true)
}else{
isPlaying = true
miStopAll.text = qsTr("Play all")
screenPlaySettings.setPlayAll(false)
}
}
}
MenuItem {
text: qsTr("Quit")
onTriggered: Qt.quit()