Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/NotificationItem.qml
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Line(s) | 221 | onClicked: { | |||
---|---|---|---|---|---|
222 | if (notificationItem.hasConfigureAction) { | 222 | if (notificationItem.hasConfigureAction) { | ||
223 | notificationItem.action("settings"); | 223 | notificationItem.action("settings"); | ||
224 | } else { | 224 | } else { | ||
225 | configure() | 225 | configure() | ||
226 | } | 226 | } | ||
227 | } | 227 | } | ||
228 | } | 228 | } | ||
229 | 229 | | |||
230 | PlasmaComponents.ToolButton { | 230 | MouseArea { | ||
231 | id: closeButton | 231 | id: closeButton | ||
232 | 232 | height: units.iconSizes.smallMedium | |||
233 | width: units.iconSizes.smallMedium | 233 | width: height | ||
234 | height: width | 234 | hoverEnabled: true | ||
235 | flat: compact | | |||
236 | | ||||
237 | iconSource: "window-close" | | |||
238 | | ||||
239 | onClicked: close() | 235 | onClicked: close() | ||
240 | } | | |||
241 | 236 | | |||
237 | PlasmaCore.IconItem { | ||||
238 | id:closeIcon | ||||
239 | anchors.fill: parent | ||||
240 | active: parent.containsMouse | ||||
241 | source: "window-close" | ||||
242 | animated: false | ||||
243 | } | ||||
244 | } | ||||
242 | } | 245 | } | ||
243 | 246 | | |||
244 | RowLayout { | 247 | RowLayout { | ||
245 | id: bottomPart | 248 | id: bottomPart | ||
246 | Layout.alignment: Qt.AlignTop | 249 | Layout.alignment: Qt.AlignTop | ||
247 | spacing: units.smallSpacing | 250 | spacing: units.smallSpacing | ||
248 | 251 | | |||
249 | // Force the whole thing to collapse if the children are invisible | 252 | // Force the whole thing to collapse if the children are invisible | ||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |