Refactor alarm system and replace notification method

The old OpenVR overlays did not function for unknown reasons, and it was
not possible to get them to work.

With this a white overlay with ALARM ACTIVATED will be shown for 3 seconds.
It's not pretty, but it effectively communicates that an alarm has been
activated.

This fixes
https://github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings/issues/417
This commit is contained in:
Vasily
2020-06-05 20:52:13 +02:00
committed by username223
parent 8c2af7477c
commit 4757756d32
16 changed files with 531 additions and 457 deletions
+49
View File
@@ -0,0 +1,49 @@
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import ovras.advsettings 1.0
RowLayout {
signal timeChanged(int hour, int minute, int second)
HourComboBox {
id: hourBox
onActivated: {
parent.timeChanged(hourBox.currentIndex,
minuteBox.currentIndex,
secondBox.currentIndex)
}
}
MyText {
text: "h"
}
MinuteSecondComboBox {
id: minuteBox
onActivated: {
parent.timeChanged(hourBox.currentIndex,
minuteBox.currentIndex,
secondBox.currentIndex)
}
}
MyText {
text: "m"
}
MinuteSecondComboBox {
id: secondBox
onActivated: {
parent.timeChanged(hourBox.currentIndex,
minuteBox.currentIndex,
secondBox.currentIndex)
}
}
MyText {
text: "s"
}
function changeTimer(hour, minute, second) {
hourBox.currentIndex = hour
minuteBox.currentIndex = minute
secondBox.currentIndex = second
}
}