Differential D10850 Diff 28087 wallpapers/image/imagepackage/platformcontents/phone/ui/WallpaperDelegate.qml
Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/platformcontents/phone/ui/WallpaperDelegate.qml
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 46 | Rectangle { | |||
---|---|---|---|---|---|
81 | } | 81 | } | ||
82 | PlasmaComponents.ToolButton { | 82 | PlasmaComponents.ToolButton { | ||
83 | anchors { | 83 | anchors { | ||
84 | top: parent.top | 84 | top: parent.top | ||
85 | right: parent.right | 85 | right: parent.right | ||
86 | margins: units.smallSpacing | 86 | margins: units.smallSpacing | ||
87 | } | 87 | } | ||
88 | iconSource: "list-remove" | 88 | iconSource: "list-remove" | ||
89 | tooltip: i18nd("plasma_applet_org.kde.image", "Remove wallpaper") | 89 | tooltip: i18nd("plasma_wallpaper_org.kde.image", "Remove wallpaper") | ||
90 | flat: false | 90 | flat: false | ||
91 | visible: model.removable | 91 | visible: model.removable | ||
92 | onClicked: imageWallpaper.removeWallpaper(model.packageName) | 92 | onClicked: imageWallpaper.removeWallpaper(model.packageName) | ||
93 | } | 93 | } | ||
94 | } | 94 | } | ||
95 | } | 95 | } | ||
96 | 96 | | |||
97 | Rectangle { | 97 | Rectangle { | ||
Show All 13 Lines | |||||
111 | 111 | | |||
112 | Timer { | 112 | Timer { | ||
113 | interval: 1000 // FIXME TODO: Use platform value for tooltip activation delay. | 113 | interval: 1000 // FIXME TODO: Use platform value for tooltip activation delay. | ||
114 | 114 | | |||
115 | running: wallpaperDelegate.containsMouse && !pressed && model.display && model.author | 115 | running: wallpaperDelegate.containsMouse && !pressed && model.display && model.author | ||
116 | 116 | | |||
117 | onTriggered: { | 117 | onTriggered: { | ||
118 | Tooltip.showText(wallpaperDelegate, Qt.point(wallpaperDelegate.mouseX, wallpaperDelegate.mouseY), | 118 | Tooltip.showText(wallpaperDelegate, Qt.point(wallpaperDelegate.mouseX, wallpaperDelegate.mouseY), | ||
119 | i18nd("plasma_applet_org.kde.image", "%1 by %2", model.display, model.author)); | 119 | i18nd("plasma_wallpaper_org.kde.image", "%1 by %2", model.display, model.author)); | ||
120 | } | 120 | } | ||
121 | } | 121 | } | ||
122 | 122 | | |||
123 | onClicked: { | 123 | onClicked: { | ||
124 | wallpapersGrid.currentIndex = index | 124 | wallpapersGrid.currentIndex = index | ||
125 | cfg_Image = model.path | 125 | cfg_Image = model.path | ||
126 | } | 126 | } | ||
127 | 127 | | |||
128 | onExited: Tooltip.hideText() | 128 | onExited: Tooltip.hideText() | ||
129 | } | 129 | } |