9import QtQuick.Templates as T
10import org.kde.kirigami as Kirigami
35 property alias header: headerFooterLayout.header
47 property int headerOrientation: Qt.Vertical
55 property alias footer: headerFooterLayout.footer
64 property bool showClickFeedback: false
68 Layout.fillWidth: true
70 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
71 outerPaddingLayout.implicitWidth)
72 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
73 outerPaddingLayout.implicitHeight)
75 hoverEnabled: !Kirigami.Settings.tabletMode && showClickFeedback
77 Kirigami.Theme.inherit: false
78 Kirigami.Theme.colorSet: Kirigami.Theme.View
80 width: ListView.view ? ListView.view.width - ListView.view.leftMargin - ListView.view.rightMargin : undefined
81 padding: Kirigami.Units.largeSpacing
86 id: outerPaddingLayout
90 topPadding: root.topPadding
91 leftPadding: root.leftPadding
92 rightPadding: root.rightPadding
93 bottomPadding: root.bottomPadding
95 contentItem: Kirigami.HeaderFooterLayout {
96 id: headerFooterLayout
98 contentItem: Kirigami.Padding {
99 id: innerPaddingLayout
101 contentItem: root.contentItem
105 visible: contentItem !== null
107 topPadding: headerFooterLayout.header ? Kirigami.Units.largeSpacing : 0
108 bottomPadding: headerFooterLayout.footer ? Kirigami.Units.largeSpacing : 0
118 target: root.contentItem
120 function onXChanged() {
121 root.contentItem.x = 0;
124 function onYChanged() {
125 root.contentItem.y =
Qt.binding(() => innerPaddingLayout.topPadding);
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:20 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.