Warning, /plasma/plasma-welcome/src/qml/footers/Footer.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * SPDX-FileCopyrightText: 2023 Oliver Beard <olib141@outlook.com>
0003 *
0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006
0007 import QtQuick
0008 import QtQuick.Controls as QQC2
0009 import QtQuick.Layouts
0010 import org.kde.kirigami as Kirigami
0011
0012 import org.kde.plasma.welcome
0013
0014 Item {
0015 id: footer
0016
0017 required property string contentSource
0018
0019 height: separatorLayout.implicitHeight
0020
0021 ColumnLayout {
0022 id: separatorLayout
0023 anchors.left: footer.left
0024 anchors.right: footer.right
0025
0026 spacing: 0
0027
0028 Kirigami.Separator {
0029 Layout.fillWidth: true
0030 }
0031
0032 // Not using QQC2.Toolbar so that the window can be
0033 // dragged from the footer, both appear identical
0034 Kirigami.AbstractApplicationHeader {
0035 Layout.fillWidth: true
0036
0037 contentItem: Item {
0038 implicitHeight: footerLoader.implicitHeight + footerLoader.anchors.margins * 2
0039 implicitWidth: parent.width
0040
0041 Loader {
0042 id: footerLoader
0043 anchors.fill: parent
0044 anchors.margins: Kirigami.Units.smallSpacing
0045
0046 source: footer.contentSource
0047 }
0048 }
0049 }
0050 }
0051 }