Warning, /libraries/kirigami-addons/src/formcard/FormSectionText.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * Copyright 2022 Devin Lin <devin@kde.org>
0003 * SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005
0006 import QtQuick 2.15
0007 import QtQuick.Controls 2.15
0008 import QtQuick.Layouts 1.15
0009
0010 import org.kde.kirigami 2.19 as Kirigami
0011
0012 /**
0013 * @brief A standard delegate label.
0014 *
0015 * This is a simple label containing secondary text that was modified to fit
0016 * the role of Form delegate.
0017 *
0018 * If you need a primary text label with optional secondary text, use
0019 * FormTextDelegate instead.
0020 *
0021 * @since KirigamiAddons 0.11.0
0022 *
0023 * @see FormTextDelegate
0024 *
0025 * @inherit QtQuick.Controls.Label
0026 */
0027 Label {
0028 color: Kirigami.Theme.disabledTextColor
0029 wrapMode: Label.Wrap
0030
0031 Layout.maximumWidth: Kirigami.Units.gridUnit * 30
0032 Layout.alignment: Qt.AlignHCenter
0033 Layout.leftMargin: Kirigami.Units.gridUnit
0034 Layout.rightMargin: Kirigami.Units.gridUnit
0035 Layout.bottomMargin: Kirigami.Units.largeSpacing
0036 Layout.topMargin: Kirigami.Units.largeSpacing
0037 Layout.fillWidth: true
0038 }