Warning, /frameworks/kirigami/src/controls/Label.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2011 by Marco Martin <mart@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.1 0008 import org.kde.kirigami 2.4 as Kirigami 0009 import QtQuick.Controls 2.0 as QQC2 0010 0011 // TODO KF6: Remove! 0012 /** 0013 * This is a label which uses the current Theme. 0014 * 0015 * The characteristics of the text will be automatically set according to the 0016 * current Theme. If you need a more customized text item use the Text component 0017 * from QtQuick. 0018 * 0019 * You can use all elements of the QML Text component, in particular the "text" 0020 * property to define the label text. 0021 * 0022 * @inherit QtQuick.Templates.Label 0023 * @deprecated This will be removed in KF6. Use QtQuick.Controls.Label directly, it will be styled appropriately. 0024 */ 0025 QQC2.Label { 0026 height: Math.round(Math.max(paintedHeight, Kirigami.Units.gridUnit * 1.6)) 0027 verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter 0028 0029 activeFocusOnTab: false 0030 0031 Component.onCompleted: { 0032 console.warn("Kirigami.Label is deprecated. Use QtQuickControls2.Label instead") 0033 } 0034 }