Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/WallpaperDelegate.qml
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 103 | PropertyAnimation { | |||
---|---|---|---|---|---|
105 | easing.type: Easing.OutQuad | 105 | easing.type: Easing.OutQuad | ||
106 | } | 106 | } | ||
107 | } | 107 | } | ||
108 | } | 108 | } | ||
109 | 109 | | |||
110 | PlasmaComponents.ToolButton { | 110 | PlasmaComponents.ToolButton { | ||
111 | anchors { | 111 | anchors { | ||
112 | top: parent.top | 112 | top: parent.top | ||
113 | left: parent.left | ||||
114 | margins: units.smallSpacing | ||||
115 | } | ||||
116 | iconSource: "document-open-folder" | ||||
117 | tooltip: i18nd("plasma_applet_org.kde.image", "Open Containing Folder") | ||||
118 | flat: false | ||||
119 | onClicked: imageWallpaper.wallpaperModel.openContainingFolder(index) | ||||
120 | opacity: wallpaperDelegate.containsMouse ? 1 : 0 | ||||
121 | Behavior on opacity { | ||||
122 | PropertyAnimation { | ||||
123 | duration: units.longDuration | ||||
124 | easing.type: Easing.OutQuad | ||||
125 | } | ||||
126 | } | ||||
127 | } | ||||
128 | | ||||
129 | PlasmaComponents.ToolButton { | ||||
130 | anchors { | ||||
131 | top: parent.top | ||||
113 | right: parent.right | 132 | right: parent.right | ||
114 | margins: units.smallSpacing | 133 | margins: units.smallSpacing | ||
115 | } | 134 | } | ||
116 | iconSource: "edit-undo" | 135 | iconSource: "edit-undo" | ||
117 | tooltip: i18nd("plasma_applet_org.kde.image", "Restore wallpaper") | 136 | tooltip: i18nd("plasma_applet_org.kde.image", "Restore wallpaper") | ||
118 | flat: false | 137 | flat: false | ||
119 | visible: model.pendingDeletion | 138 | visible: model.pendingDeletion | ||
120 | onClicked: imageWallpaper.wallpaperModel.setPendingDeletion(index, !model.pendingDeletion) | 139 | onClicked: imageWallpaper.wallpaperModel.setPendingDeletion(index, !model.pendingDeletion) | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |