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
7import QtQuick.Controls
8import QtQuick.Layouts
9
10import org.kde.kirigami 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.largeSpacing + Kirigami.Units.smallSpacing
34 Layout.rightMargin: Kirigami.Units.largeSpacing + Kirigami.Units.smallSpacing
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 Mon Nov 4 2024 16:33:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.