Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/WallpaperDelegate.qml
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 102 | fillMode: { | |||
---|---|---|---|---|---|
111 | } else if (cfg_FillMode == Image.TileVertically) { | 111 | } else if (cfg_FillMode == Image.TileVertically) { | ||
112 | return QPixmapItem.TileVertically; | 112 | return QPixmapItem.TileVertically; | ||
113 | } else if (cfg_FillMode == Image.TileHorizontally) { | 113 | } else if (cfg_FillMode == Image.TileHorizontally) { | ||
114 | return QPixmapItem.TileHorizontally; | 114 | return QPixmapItem.TileHorizontally; | ||
115 | } | 115 | } | ||
116 | return QPixmapItem.PreserveAspectFit; | 116 | return QPixmapItem.PreserveAspectFit; | ||
117 | } | 117 | } | ||
118 | } | 118 | } | ||
119 | QtControls2.CheckBox { | ||||
120 | visible: configDialog.currentWallpaper == "org.kde.slideshow" | ||||
121 | anchors.right: parent.right | ||||
122 | anchors.top: parent.top | ||||
123 | checked: visible ? model.checked : false | ||||
124 | onToggled: imageWallpaper.toggleSlide(model.path, checked) | ||||
125 | } | ||||
119 | } | 126 | } | ||
120 | 127 | | |||
121 | onClicked: { | 128 | onClicked: { | ||
122 | cfg_Image = model.path; | 129 | cfg_Image = model.path; | ||
123 | wallpapersGrid.forceActiveFocus(); | 130 | wallpapersGrid.forceActiveFocus(); | ||
124 | } | 131 | } | ||
125 | } | 132 | } |