Kirigami-addons
7import QtQuick.Controls 2.15
8import QtQuick.Layouts 1.15
10import org.kde.kirigami 2.19 as Kirigami
12import "private" as Private
48 default property alias delegates: internalColumn.data
60 property real maximumWidth:
Kirigami.Units.gridUnit * 30
67 property real padding: 0
68 property real verticalPadding: padding
69 property real horizontalPadding: padding
70 property real topPadding: verticalPadding
71 property real bottomPadding: verticalPadding
72 property real leftPadding: horizontalPadding
73 property real rightPadding: horizontalPadding
78 readonly
property bool cardWidthRestricted: root.width > root.maximumWidth
83 Layout.fillWidth:
true
85 implicitHeight: topPadding + bottomPadding + internalColumn.implicitHeight + rectangle.borderWidth * 2
89 readonly
property real borderWidth: 1
92 radius: root.cardWidthRestricted ?
Kirigami.Units.cornerRadius : 0
93 color:
Kirigami.Theme.backgroundColor
101 leftMargin: root.cardWidthRestricted ? Math.round((root.width - root.maximumWidth) / 2) : -1
102 rightMargin: root.cardWidthRestricted ? Math.round((root.width - root.maximumWidth) / 2) : -1
114 readonly
property bool _roundCorners: root.cardWidthRestricted
121 leftMargin: root.leftPadding + rectangle.borderWidth
122 rightMargin: root.rightPadding + rectangle.borderWidth
123 topMargin: root.topPadding + rectangle.borderWidth
124 bottomMargin: root.bottomPadding + rectangle.borderWidth
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:46:57 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.