Kirigami-addons

FormSectionText.qml
1/*
2 * Copyright 2022 Devin Lin <devin@kde.org>
3 * SPDX-License-Identifier: LGPL-2.0-or-later
4 */
5
6import QtQuick 2.15
7import QtQuick.Controls 2.15
8import QtQuick.Layouts 1.15
9
10import org.kde.kirigami 2.19 as Kirigami
11
12/**
13 * @brief A standard delegate label.
14 *
15 * This is a simple label containing secondary text that was modified to fit
16 * the role of Form delegate.
17 *
18 * If you need a primary text label with optional secondary text, use
19 * FormTextDelegate instead.
20 *
21 * @since KirigamiAddons 0.11.0
22 *
23 * @see FormTextDelegate
24 *
25 * @inherit QtQuick.Controls.Label
26 */
27Label {
28 color: Kirigami.Theme.disabledTextColor
29 wrapMode: Label.Wrap
30
31 Layout.maximumWidth: Kirigami.Units.gridUnit * 30
32 Layout.alignment: Qt.AlignHCenter
33 Layout.leftMargin: Kirigami.Units.gridUnit
34 Layout.rightMargin: Kirigami.Units.gridUnit
35 Layout.bottomMargin: Kirigami.Units.largeSpacing
36 Layout.topMargin: Kirigami.Units.largeSpacing
37 Layout.fillWidth: true
38}
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.