Kirigami2

styles/Material/Label.qml
1 /*
2  * SPDX-FileCopyrightText: 2011 by Marco Martin <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQuick 2.1
8 import QtQuick.Controls 2.0 as QQC2
9 
10 /**
11  * This is a label which uses the current Theme.
12  *
13  * The characteristics of the text will be automatically set according to the
14  * current Theme. If you need a more customized text item use the Text component
15  * from QtQuick.
16  *
17  * You can use all elements of the QML Text component, in particular the "text"
18  * property to define the label text.
19  *
20  * @inherit QtQuick.Controls.2/Label
21  * @deprecated use QtQuick.Controls.2/Label directly, it will be styled appropriately
22  */
23 QQC2.Label {
24  verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter
25 
26  activeFocusOnTab: false
27 
28  Component.onCompleted: {
29  console.warn("Kirigami.Label is deprecated. Use QQC2.Label instead")
30  }
31 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.