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:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user