Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/WallpaperDelegate.qml
Show All 24 Lines | |||||
25 | import org.kde.plasma.components 2.0 as PlasmaComponents | 25 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
26 | import org.kde.kirigami 2.4 as Kirigami | 26 | import org.kde.kirigami 2.4 as Kirigami | ||
27 | import org.kde.kcm 1.1 as KCM | 27 | import org.kde.kcm 1.1 as KCM | ||
28 | 28 | | |||
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 | property bool selected: (wallpapersGrid.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 | | |||
38 | toolTip: model.author.length > 0 ? i18ndc("plasma_wallpaper_org.kde.image", "<image> by <author>", "By %1", model.author) : "" | 38 | toolTip: model.author.length > 0 ? i18ndc("plasma_wallpaper_org.kde.image", "<image> by <author>", "By %1", model.author) : "" | ||
39 | 39 | | |||
40 | hoverEnabled: true | 40 | hoverEnabled: true | ||
41 | 41 | | |||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |