cf12defd28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
50 lines
1.1 KiB
QML
50 lines
1.1 KiB
QML
/*
|
|
* SPDX-FileCopyrightText: 2023 Marco Martin <mart@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
import org.kde.kirigami as Kirigami
|
|
|
|
ColumnLayout {
|
|
width: 600
|
|
height: 600
|
|
|
|
Text {
|
|
text: `Implicit width: ${hfLayout.implicitWidth}\nImplicit height: ${hfLayout.implicitHeight}`
|
|
}
|
|
Kirigami.HeaderFooterLayout {
|
|
id: hfLayout
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
header: ToolBar {
|
|
contentItem: Rectangle {
|
|
color: "red"
|
|
implicitWidth: 20
|
|
implicitHeight: 20
|
|
}
|
|
}
|
|
contentItem: Rectangle {
|
|
color: "lightgreen"
|
|
implicitWidth: 300
|
|
implicitHeight: 50
|
|
}
|
|
footer: ToolBar {
|
|
contentItem: Rectangle {
|
|
color: "blue"
|
|
height: 30
|
|
}
|
|
}
|
|
}
|
|
Rectangle {
|
|
color: "yellow"
|
|
Layout.preferredHeight: 40
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
}
|
|
}
|