nova-shell/modules/OsdState.qml

24 lines
489 B
QML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

pragma Singleton
import QtQuick
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, x, scr) {
value = val;
icon = ico;
itemX = x;
screen = scr;
visible = true;
_timer.restart();
}
}