Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/config.qml
Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Line(s) | 277 | QtControls2.Label { | |||
---|---|---|---|---|---|
280 | QtControls2.ToolTip.text: modelData | 280 | QtControls2.ToolTip.text: modelData | ||
281 | QtControls2.ToolTip.visible: folderDelegate.hovered | 281 | QtControls2.ToolTip.visible: folderDelegate.hovered | ||
282 | QtControls2.ToolTip.delay: 1000 | 282 | QtControls2.ToolTip.delay: 1000 | ||
283 | QtControls2.ToolTip.timeout: 5000 | 283 | QtControls2.ToolTip.timeout: 5000 | ||
284 | } | 284 | } | ||
285 | width: slidePathsView.width | 285 | width: slidePathsView.width | ||
286 | height: paintedHeight; | 286 | height: paintedHeight; | ||
287 | } | 287 | } | ||
288 | | ||||
289 | Kirigami.Heading { | ||||
290 | anchors.fill: parent | ||||
291 | anchors.margins: Kirigami.Units.largeSpacing | ||||
292 | horizontalAlignment: Text.AlignHCenter | ||||
293 | verticalAlignment: Text.AlignVCenter | ||||
294 | wrapMode: Text.WordWrap | ||||
295 | visible: slidePathsView.count === 0 | ||||
296 | level: 2 | ||||
297 | text: i18n("There are no wallpaper locations configured") | ||||
298 | opacity: 0.3 | ||||
299 | } | ||||
288 | } | 300 | } | ||
289 | } | 301 | } | ||
290 | Loader { | 302 | Loader { | ||
291 | sourceComponent: thumbnailsComponent | 303 | sourceComponent: thumbnailsComponent | ||
292 | Layout.fillWidth: true | 304 | Layout.fillWidth: true | ||
293 | Layout.fillHeight: true | 305 | Layout.fillHeight: true | ||
294 | anchors.fill: undefined | 306 | anchors.fill: undefined | ||
295 | } | 307 | } | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 327 | KCM.GridView { | |||
338 | view.model: imageModel | 350 | view.model: imageModel | ||
339 | Component.onCompleted: { | 351 | Component.onCompleted: { | ||
340 | imageModel.usedInConfig = true; | 352 | imageModel.usedInConfig = true; | ||
341 | resetCurrentIndex() | 353 | resetCurrentIndex() | ||
342 | } | 354 | } | ||
343 | view.delegate: WallpaperDelegate { | 355 | view.delegate: WallpaperDelegate { | ||
344 | color: cfg_Color | 356 | color: cfg_Color | ||
345 | } | 357 | } | ||
358 | | ||||
359 | Kirigami.Heading { | ||||
360 | anchors.fill: parent | ||||
361 | anchors.margins: Kirigami.Units.largeSpacing | ||||
362 | // FIXME: this is needed to vertically center it in the grid for some reason | ||||
363 | anchors.topMargin: wallpapersGrid.height | ||||
364 | horizontalAlignment: Text.AlignHCenter | ||||
365 | verticalAlignment: Text.AlignVCenter | ||||
366 | wrapMode: Text.WordWrap | ||||
367 | visible: wallpapersGrid.view.count === 0 | ||||
368 | level: 2 | ||||
369 | text: i18n("There are no wallpapers in this slideshow") | ||||
370 | opacity: 0.3 | ||||
371 | } | ||||
346 | } | 372 | } | ||
347 | } | 373 | } | ||
348 | 374 | | |||
349 | DragDrop.DropArea { | 375 | DragDrop.DropArea { | ||
350 | Layout.fillWidth: true | 376 | Layout.fillWidth: true | ||
351 | Layout.fillHeight: true | 377 | Layout.fillHeight: true | ||
352 | 378 | | |||
353 | onDragEnter: { | 379 | onDragEnter: { | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |