Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/config.qml
Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Line(s) | 281 | GridView { | |||
---|---|---|---|---|---|
289 | 289 | | |||
290 | anchors.margins: 4 | 290 | anchors.margins: 4 | ||
291 | boundsBehavior: Flickable.StopAtBounds | 291 | boundsBehavior: Flickable.StopAtBounds | ||
292 | 292 | | |||
293 | delegate: WallpaperDelegate { | 293 | delegate: WallpaperDelegate { | ||
294 | color: cfg_Color | 294 | color: cfg_Color | ||
295 | } | 295 | } | ||
296 | 296 | | |||
297 | onCountChanged: { | 297 | onContentHeightChanged: { | ||
298 | wallpapersGrid.currentIndex = imageWallpaper.wallpaperModel.indexOf(cfg_Image); | 298 | wallpapersGrid.currentIndex = imageWallpaper.wallpaperModel.indexOf(cfg_Image); | ||
299 | wallpapersGrid.positionViewAtIndex(wallpapersGrid.currentIndex, GridView.Visible) | 299 | wallpapersGrid.positionViewAtIndex(wallpapersGrid.currentIndex, GridView.Visible) | ||
300 | } | 300 | } | ||
301 | | ||||
302 | Connections { | 301 | Connections { | ||
303 | target: root | 302 | target: root | ||
304 | onRestoreIndex: { | 303 | onRestoreIndex: { | ||
305 | wallpapersGrid.currentIndex = wallpapersGrid.currentIndex - count | 304 | wallpapersGrid.currentIndex = wallpapersGrid.currentIndex - count | ||
306 | } | 305 | } | ||
307 | } | 306 | } | ||
308 | 307 | | |||
309 | Keys.onPressed: { | 308 | Keys.onPressed: { | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |