Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/qml/Previews.qml
Show All 26 Lines | 26 | ScrollView { | |||
---|---|---|---|---|---|
27 | objectName: "themeList" | 27 | objectName: "themeList" | ||
28 | frameVisible: true | 28 | frameVisible: true | ||
29 | GridView { | 29 | GridView { | ||
30 | id: gridView | 30 | id: gridView | ||
31 | objectName: "listView" | 31 | objectName: "listView" | ||
32 | model: decorationsModel | 32 | model: decorationsModel | ||
33 | cellWidth: 20 * units.gridUnit | 33 | cellWidth: 20 * units.gridUnit | ||
34 | cellHeight: cellWidth / 1.6 | 34 | cellHeight: cellWidth / 1.6 | ||
35 | onContentHeightChanged: { | ||||
36 | gridView.currentIndex = kcm.savedIndex(); | ||||
37 | gridView.positionViewAtIndex(gridView.currentIndex, GridView.Visible); | ||||
38 | } | ||||
39 | | ||||
35 | Rectangle { | 40 | Rectangle { | ||
36 | z: -1 | 41 | z: -1 | ||
37 | anchors.fill: parent | 42 | anchors.fill: parent | ||
38 | color: baseColor | 43 | color: baseColor | ||
39 | } | 44 | } | ||
40 | highlight: Rectangle { | 45 | highlight: Rectangle { | ||
41 | color: highlightColor | 46 | color: highlightColor | ||
42 | opacity: 0.6 | 47 | opacity: 0.6 | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |