Differential D24798 Diff 69730 wallpapers/image/imagepackage/platformcontents/phone/ui/customwallpaper.qml
Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/platformcontents/phone/ui/customwallpaper.qml
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | import QtQuick 2.0 | 19 | import QtQuick 2.0 | ||
20 | import Qt.labs.folderlistmodel 2.1 | 20 | import Qt.labs.folderlistmodel 2.1 | ||
21 | //We need units from it | 21 | //We need units from it | ||
22 | import org.kde.plasma.core 2.0 as Plasmacore | 22 | import org.kde.plasma.core 2.0 as Plasmacore | ||
23 | import org.kde.plasma.wallpapers.image 2.0 as Wallpaper | 23 | import org.kde.plasma.wallpapers.image 2.0 as Wallpaper | ||
24 | import org.kde.kquickcontrolsaddons 2.0 | 24 | import org.kde.kquickcontrolsaddons 2.0 | ||
25 | import QtQuick.Controls 1.0 as QtControls | 25 | import QtQuick.Controls 2.8 as QQC2 | ||
ngraham: `import QtQuick.Controls 2.5 as QQC2` | |||||
26 | 26 | | |||
27 | Rectangle { | 27 | Rectangle { | ||
28 | id: root | 28 | id: root | ||
29 | color: syspal.window | 29 | color: syspal.window | ||
30 | anchors.fill: parent | 30 | anchors.fill: parent | ||
31 | 31 | | |||
32 | SystemPalette {id: syspal} | 32 | SystemPalette {id: syspal} | ||
33 | 33 | | |||
34 | QtControls.ScrollView { | 34 | QQC2.ScrollView { | ||
35 | anchors.fill: parent | 35 | anchors.fill: parent | ||
36 | 36 | | |||
37 | frameVisible: true | 37 | frameVisible: true | ||
38 | 38 | | |||
39 | GridView { | 39 | GridView { | ||
40 | id: customGrid | 40 | id: customGrid | ||
41 | model: FolderListModel { | 41 | model: FolderListModel { | ||
42 | folder: imageWallpaper.photosPath | 42 | folder: imageWallpaper.photosPath | ||
Show All 28 Lines | 69 | anchors { | |||
71 | margins: units.smallSpacing * 2 | 71 | margins: units.smallSpacing * 2 | ||
72 | } | 72 | } | ||
73 | source: model.fileURL | 73 | source: model.fileURL | ||
74 | } | 74 | } | ||
75 | } | 75 | } | ||
76 | } | 76 | } | ||
77 | } | 77 | } | ||
78 | } | 78 | } | ||
79 | QtControls.Button { | 79 | QQC2.Button { | ||
80 | anchors { | 80 | anchors { | ||
81 | bottom: parent.bottom | 81 | bottom: parent.bottom | ||
82 | horizontalCenter: parent.horizontalCenter | 82 | horizontalCenter: parent.horizontalCenter | ||
83 | } | 83 | } | ||
84 | width: height | 84 | width: height | ||
85 | iconName: "go-previous" | 85 | iconName: "go-previous" | ||
86 | onClicked: customWallpaperLoader.source = "" | 86 | onClicked: customWallpaperLoader.source = "" | ||
87 | } | 87 | } | ||
88 | } | 88 | } |
import QtQuick.Controls 2.5 as QQC2