osd attached to triggering module position, per-screen filtering

This commit is contained in:
Damocles 2026-04-12 17:57:12 +02:00
parent 85a1260a35
commit 66dc628752
4 changed files with 19 additions and 6 deletions

View file

@ -5,15 +5,19 @@ QtObject {
property bool visible: false
property real value: 0 // 0.01.0
property string icon: ""
property real itemX: 0
property var screen: null
property Timer _timer: Timer {
interval: 1500
onTriggered: visible = false
}
function show(val, ico) {
function show(val, ico, x, scr) {
value = val;
icon = ico;
itemX = x;
screen = scr;
visible = true;
_timer.restart();
}