Plasma

DescriptiveLabel.qml
1 /*
2  SPDX-FileCopyrightText: 2012 Sebastian K├╝gler <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 import QtQuick 2.0
8 import org.kde.plasma.components 2.0
9 
10 /**
11  * This is a descriptive label which uses the plasma theme. The characteristics of
12  * the text will be automatically set according to the plasma theme. Use this
13  * components for less important additional data to show in a user interface.
14  *
15  * Example usage:
16  * @code
17  * import org.kde.plasma.extras 2.0 as PlasmaExtras
18  * [...]
19  * Column {
20  * PlasmaComponents.Label { text: "Firefox" }
21  * PlasmaExtras.DescriptiveLabel { text: "Web Browser"}
22  * [...]
23  * }
24  * @endcode
25  *
26  * See PlasmaComponents Label and primitive QML Text element API for additional
27  * properties, methods and signals.
28  *
29  * @inherits org::kde::plasma::components::Label
30  */
31 Label {
32  id: root
33 
34  /*
35  * If a user can interact with this item, for example in a ListView delegate, this
36  * property should be set to true when the label is being interacted with.
37  * The default is false.
38  */
39  property bool active: false
40 
41  opacity: active ? 0.8 : 0.6
42 }
uint id
Applet id: is unique in the whole Plasma session and will never change across restarts.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 04:05:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.