Changeset View
Changeset View
Standalone View
Standalone View
src/qmlcontrols/kcmcontrols/qml/GridViewKCM.qml
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 42 | Kirigami.Page { | |||
---|---|---|---|---|---|
80 | //NOTE: this should be smallspacing buit we need a pixel size in order to align with systemsettings widgets | 80 | //NOTE: this should be smallspacing buit we need a pixel size in order to align with systemsettings widgets | ||
81 | leftPadding: Kirigami.Settings.isMobile ? 0 : headerParent.leftPadding | 81 | leftPadding: Kirigami.Settings.isMobile ? 0 : headerParent.leftPadding | ||
82 | topPadding: headerParent.contentItem ? 0 : leftPadding | 82 | topPadding: headerParent.contentItem ? 0 : leftPadding | ||
83 | rightPadding: leftPadding | 83 | rightPadding: leftPadding | ||
84 | bottomPadding: footerParent.contentItem ? 0 : leftPadding | 84 | bottomPadding: footerParent.contentItem ? 0 : leftPadding | ||
85 | 85 | | |||
86 | header: QtControls.Control { | 86 | header: QtControls.Control { | ||
87 | id: headerParent | 87 | id: headerParent | ||
88 | height: contentItem ? implicitHeight : 0 | ||||
88 | } | 89 | } | ||
89 | 90 | | |||
90 | footer: QtControls.Control { | 91 | footer: QtControls.Control { | ||
91 | id: footerParent | 92 | id: footerParent | ||
93 | height: contentItem ? implicitHeight : 0 | ||||
92 | } | 94 | } | ||
93 | Component.onCompleted: { | 95 | Component.onCompleted: { | ||
94 | if (footer && footer != footerParent) { | 96 | if (footer && footer != footerParent) { | ||
95 | var f = footer | 97 | var f = footer | ||
96 | 98 | | |||
97 | footerParent.contentItem = f | 99 | footerParent.contentItem = f | ||
98 | footer = footerParent | 100 | footer = footerParent | ||
99 | f.visible = true | 101 | f.visible = true | ||
Show All 18 Lines |