Changeset View
Changeset View
Standalone View
Standalone View
kded/qml/Osd.qml
Context not available. | |||||
36 | property string modeName | 36 | property string modeName | ||
---|---|---|---|---|---|
37 | property bool animateOpacity: false | 37 | property bool animateOpacity: false | ||
38 | property string itemSource | 38 | property string itemSource | ||
39 | property QtObject osdItem | ||||
39 | 40 | | |||
40 | Behavior on opacity { | 41 | Behavior on opacity { | ||
41 | SequentialAnimation { | 42 | SequentialAnimation { | ||
Context not available. | |||||
47 | easing.type: Easing.InQuad | 48 | easing.type: Easing.InQuad | ||
48 | } | 49 | } | ||
49 | } | 50 | } | ||
50 | enabled: root.animateOpacity | 51 | enabled: root.timeout > 0 && root.animateOpacity | ||
51 | } | 52 | } | ||
52 | 53 | | |||
53 | mainItem: Loader { | 54 | mainItem: Loader { | ||
Context not available. | |||||
55 | onItemChanged: { | 56 | onItemChanged: { | ||
56 | if (item != undefined) { | 57 | if (item != undefined) { | ||
57 | item.rootItem = root; | 58 | item.rootItem = root; | ||
59 | root.osdItem = item | ||||
58 | } | 60 | } | ||
59 | } | 61 | } | ||
60 | 62 | | |||
Context not available. |