Changeset View
Changeset View
Standalone View
Standalone View
src/qmlcontrols/kcmcontrols/qml/ScrollView.qml
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 39 | QtControls.ScrollView { | |||
---|---|---|---|---|---|
42 | /** | 42 | /** | ||
43 | * view: GridView | 43 | * view: GridView | ||
44 | * Exposes the internal flickable | 44 | * Exposes the internal flickable | ||
45 | */ | 45 | */ | ||
46 | property Flickable view | 46 | property Flickable view | ||
47 | contentItem: view | 47 | contentItem: view | ||
48 | onViewChanged: { | 48 | onViewChanged: { | ||
49 | view.parent = scroll; | 49 | view.parent = scroll; | ||
50 | view.anchors.fill = view.parent; | | |||
51 | } | 50 | } | ||
52 | 51 | | |||
53 | activeFocusOnTab: false | 52 | activeFocusOnTab: false | ||
54 | Kirigami.Theme.colorSet: Kirigami.Theme.View | 53 | Kirigami.Theme.colorSet: Kirigami.Theme.View | ||
55 | Kirigami.Theme.inherit: false | 54 | Kirigami.Theme.inherit: false | ||
56 | 55 | | |||
57 | Component.onCompleted: scroll.background.visible = true; | 56 | Component.onCompleted: scroll.background.visible = true; | ||
58 | 57 | | |||
59 | 58 | | |||
60 | QtControls.ScrollBar.horizontal.visible: false | 59 | QtControls.ScrollBar.horizontal.visible: false | ||
61 | } | 60 | } |