Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/osd/Osd.qml
Show All 32 Lines | 24 | PlasmaCore.Dialog { | |||
---|---|---|---|---|---|
33 | // the number will be used as a value for the progress bar | 33 | // the number will be used as a value for the progress bar | ||
34 | property var osdValue | 34 | property var osdValue | ||
35 | // Icon name to display | 35 | // Icon name to display | ||
36 | property string icon | 36 | property string icon | ||
37 | // Set to true if the value is meant for progress bar, | 37 | // Set to true if the value is meant for progress bar, | ||
38 | // false for displaying the value as normal text | 38 | // false for displaying the value as normal text | ||
39 | property bool showingProgress: false | 39 | property bool showingProgress: false | ||
40 | 40 | | |||
41 | property bool animateOpacity: false | | |||
42 | | ||||
43 | Behavior on opacity { | | |||
44 | SequentialAnimation { | | |||
45 | // prevent press and hold from flickering | | |||
46 | PauseAnimation { duration: 100 } | | |||
47 | NumberAnimation { | | |||
48 | duration: root.timeout | | |||
49 | easing.type: Easing.InQuad | | |||
50 | } | | |||
51 | } | | |||
52 | enabled: root.animateOpacity | | |||
53 | } | | |||
54 | | ||||
55 | mainItem: OsdItem { | 41 | mainItem: OsdItem { | ||
56 | rootItem: root | 42 | rootItem: root | ||
57 | } | 43 | } | ||
58 | } | 44 | } |