Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/explorer/AppletDelegate.qml
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Line(s) | 82 | Item { | |||
---|---|---|---|---|---|
169 | } | 169 | } | ||
170 | 170 | | |||
171 | PlasmaComponents.ToolButton { | 171 | PlasmaComponents.ToolButton { | ||
172 | id: uninstallButton | 172 | id: uninstallButton | ||
173 | anchors { | 173 | anchors { | ||
174 | top: parent.top | 174 | top: parent.top | ||
175 | right: parent.right | 175 | right: parent.right | ||
176 | } | 176 | } | ||
177 | iconSource: delegate.pendingUninstall ? "edit-undo" : "list-remove" | 177 | iconSource: delegate.pendingUninstall ? "edit-undo" : "edit-delete" | ||
178 | // we don't really "undo" anything but we'll pretend to the user that we do | 178 | // we don't really "undo" anything but we'll pretend to the user that we do | ||
179 | tooltip: delegate.pendingUninstall ? i18nd("plasma_shell_org.kde.plasma.desktop", "Undo uninstall") | 179 | tooltip: delegate.pendingUninstall ? i18nd("plasma_shell_org.kde.plasma.desktop", "Undo uninstall") | ||
180 | : i18nd("plasma_shell_org.kde.plasma.desktop", "Uninstall widget") | 180 | : i18nd("plasma_shell_org.kde.plasma.desktop", "Uninstall widget") | ||
181 | flat: false | 181 | flat: false | ||
182 | visible: model.local | 182 | visible: model.local | ||
183 | onHoveredChanged: { | 183 | onHoveredChanged: { | ||
184 | if (hovered) { | 184 | if (hovered) { | ||
185 | // hovering the uninstall button triggers onExited of the main mousearea | 185 | // hovering the uninstall button triggers onExited of the main mousearea | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |