Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/WallpaperDelegate.qml
Show All 28 Lines | |||||
29 | KCM.GridDelegate { | 29 | KCM.GridDelegate { | ||
30 | id: wallpaperDelegate | 30 | id: wallpaperDelegate | ||
31 | 31 | | |||
32 | property alias color: backgroundRect.color | 32 | property alias color: backgroundRect.color | ||
33 | readonly property bool selected: (view.currentIndex === index) | 33 | readonly property bool selected: (view.currentIndex === index) | ||
34 | opacity: model.pendingDeletion ? 0.5 : 1 | 34 | opacity: model.pendingDeletion ? 0.5 : 1 | ||
35 | 35 | | |||
36 | text: model.display | 36 | text: model.display | ||
37 | 37 | subtitle: model.author | |||
38 | toolTip: model.author.length > 0 ? i18ndc("plasma_wallpaper_org.kde.image", "<image> by <author>", "By %1", model.author) : "" | | |||
39 | 38 | | |||
40 | hoverEnabled: true | 39 | hoverEnabled: true | ||
41 | 40 | | |||
42 | actions: [ | 41 | actions: [ | ||
43 | Kirigami.Action { | 42 | Kirigami.Action { | ||
44 | icon.name: "document-open-folder" | 43 | icon.name: "document-open-folder" | ||
45 | tooltip: i18nd("plasma_wallpaper_org.kde.image", "Open Containing Folder") | 44 | tooltip: i18nd("plasma_wallpaper_org.kde.image", "Open Containing Folder") | ||
46 | onTriggered: imageModel.openContainingFolder(index) | 45 | onTriggered: imageModel.openContainingFolder(index) | ||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |