Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/items/AbstractItem.qml
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 95 | onClicked: { | |||
---|---|---|---|---|---|
96 | abstractItem.hideToolTip() | 96 | abstractItem.hideToolTip() | ||
97 | abstractItem.clicked(mouse) | 97 | abstractItem.clicked(mouse) | ||
98 | } | 98 | } | ||
99 | onWheel: abstractItem.wheel(wheel) | 99 | onWheel: abstractItem.wheel(wheel) | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | PlasmaComponents.Label { | 102 | PlasmaComponents.Label { | ||
103 | id: label | 103 | id: label | ||
104 | anchors { | ||||
105 | left: parent.left | ||||
106 | leftMargin: iconItem ? iconItem.width + units.smallSpacing : 0 | ||||
107 | verticalCenter: parent.verticalCenter | ||||
108 | } | ||||
104 | opacity: labelVisible ? 1 : 0 | 109 | opacity: labelVisible ? 1 : 0 | ||
105 | x: iconItem ? iconItem.width + units.smallSpacing : 0 | | |||
106 | visible: abstractItem.hidden | 110 | visible: abstractItem.hidden | ||
107 | Behavior on opacity { | 111 | Behavior on opacity { | ||
108 | NumberAnimation { | 112 | NumberAnimation { | ||
109 | duration: units.longDuration | 113 | duration: units.longDuration | ||
110 | easing.type: Easing.InOutQuad | 114 | easing.type: Easing.InOutQuad | ||
111 | } | 115 | } | ||
112 | } | 116 | } | ||
113 | anchors { | | |||
114 | verticalCenter: parent.verticalCenter | | |||
115 | } | | |||
116 | } | 117 | } | ||
117 | } | 118 | } | ||
118 | 119 | |