Libplasma

DescriptiveLabel.qml
1/*
2 SPDX-FileCopyrightText: 2012 Sebastian Kügler <sebas@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7import QtQuick
8import org.kde.plasma.components
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 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 */
31Label {
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}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.