Changeset View
Changeset View
Standalone View
Standalone View
src/qmlcontrols/kcmcontrols/qml/SimpleKCM.qml
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 66 | footer: QtControls.Control { | |||
---|---|---|---|---|---|
69 | height: visible ? implicitHeight : 0 | 69 | height: visible ? implicitHeight : 0 | ||
70 | leftPadding: 4 | 70 | leftPadding: 4 | ||
71 | topPadding: 4 | 71 | topPadding: 4 | ||
72 | rightPadding: 4 | 72 | rightPadding: 4 | ||
73 | bottomPadding: 4 | 73 | bottomPadding: 4 | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | Component.onCompleted: { | 76 | Component.onCompleted: { | ||
77 | if (!Kirigami.Settings.isMobile) { | ||||
78 | flickable.boundsBehavior = Flickable.StopAtBounds | ||||
79 | } | ||||
80 | | ||||
77 | if (footer && footer != footerParent) { | 81 | if (footer && footer != footerParent) { | ||
78 | var f = footer | 82 | var f = footer | ||
79 | 83 | | |||
80 | footerParent.contentItem = f | 84 | footerParent.contentItem = f | ||
81 | footer = footerParent | 85 | footer = footerParent | ||
82 | f.visible = true | 86 | f.visible = true | ||
83 | f.parent = footerParent | 87 | f.parent = footerParent | ||
84 | } | 88 | } | ||
Show All 34 Lines |