Kirigami2

IconPropertiesGroup.qml
1 /*
2  * SPDX-FileCopyrightText: 2017 Marco Martin <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQml 2.1
8 
9 /**
10  * @brief Group of icon properties.
11  *
12  * This is a subset of those used in QQC2, Kirigami.Action still needs the full one as needs 100% api compatibility
13  */
14 QtObject {
15  /**
16  * @brief This property holds icon name.
17  *
18  * The icon will be loaded from the platform theme. If the icon is found
19  * in the theme, it will always be used; even if icon.source is also set.
20  * If the icon is not found, icon.source will be used instead.
21  */
22  property string name
23 
24  /**
25  * @brief This property holds the icon source.
26  *
27  * The icon will be loaded as a regular image.
28  *
29  * @see QtQuick.Image::source
30  */
31  property var source
32 
33  /**
34  * @brief This property holds the icon tint color.
35  *
36  * The icon is tinted with the specified color, unless the color is set to "transparent".
37  */
38  property color color: Qt.rgba(0, 0, 0, 0)
39 }
40 
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.