osd attached to triggering module position, per-screen filtering
This commit is contained in:
parent
85a1260a35
commit
66dc628752
4 changed files with 19 additions and 6 deletions
|
|
@ -5,15 +5,19 @@ QtObject {
|
|||
property bool visible: false
|
||||
property real value: 0 // 0.0–1.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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue