Kirigami-addons

FormCardPage.qml
1// SPDX-FileCopyrightText: 2021 Carl Schwan <carl@carlschwan.eu>
2// SPDX-License-Identifier: LGPL-2.0-or-later
3
4import QtQuick
5import QtQuick.Controls as QQC2
6import QtQuick.Window
7import QtQuick.Layouts
8import org.kde.kirigami as Kirigami
9
10/**
11 * @brief A scrollable page used as a container for one or more FormCards.
12 *
13 * @since KirigamiAddons 0.11.0
14 * @inherit org:kde::kirigami::ScrollablePage
15 */
16Kirigami.ScrollablePage {
17 id: root
19 default property alias cards: internalLayout.data
20
21 topPadding: 0
22 leftPadding: 0
23 rightPadding: 0
24
25 background: Rectangle {
26 Kirigami.Theme.colorSet: Kirigami.Theme.Window
27 Kirigami.Theme.inherit: false
28
29 Item {
30 id: view
31
32 Kirigami.Theme.colorSet: Kirigami.Theme.View
33 Kirigami.Theme.inherit: false
34 }
35
36 color: Kirigami.ColorUtils.linearInterpolation(Kirigami.Theme.backgroundColor, view.Kirigami.Theme.backgroundColor, 0.5);
37 }
38
39 ColumnLayout {
40 id: internalLayout
41
42 spacing: 0
43 }
44}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:46:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.