9import org.kde.kirigami as Kirigami
38 property int maximumColumns: 2
52 property int maximumColumnWidth: Kirigami.Units.gridUnit * 20
64 property int minimumColumnWidth: Kirigami.Units.gridUnit * 12
66 columns: Math.max(1, Math.min(maximumColumns > 0 ? maximumColumns : Infinity,
67 Math.floor(width/minimumColumnWidth),
68 Math.ceil(width/maximumColumnWidth)));
70 rowSpacing: Kirigami.Units.largeSpacing
71 columnSpacing: Kirigami.Units.largeSpacing
75 width: maximumColumnWidth*2 + Kirigami.Units.largeSpacing
77 Layout.preferredWidth: maximumColumnWidth * Math.max(1, Math.min(maximumColumns > 0 ? maximumColumns : Infinity,
78 Math.floor(parent.width/minimumColumnWidth),
79 Math.ceil(parent.width/maximumColumnWidth))) + Kirigami.Units.largeSpacing * (columns - 1)
81 Layout.maximumWidth: Layout.preferredWidth
82 Layout.alignment:
Qt.AlignHCenter
84 Component.onCompleted: childrenChanged()
86 for (
const child of children) {
87 child.Layout.fillHeight =
true;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:52 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.