MauiKit Controls

Icon.qml
1import QtQuick
2import org.mauikit.controls 1.3 as Maui
3
4/**
5 * @inherit Icon
6 * @brief An item for displaying an icon from an asset or from the icon theme, or from an image source.
7 *
8 * @warning This element is just an alias around the Icon object. Checkout the Icon properties for more details.
9 * @see Icon.
10 */
11Maui.PrivateIcon
12{
13 id: control
14
15 implicitHeight: Maui.Style.iconSize
16 implicitWidth: implicitHeight
17
18 /**
19 * @brief The current icon theme being used as part of the Maui Shell.
20 * This is exposed to check changes on the used icon theme for hot reloading the icons.
21 */
22 readonly property string currentIconTheme: Maui.Style.currentIconTheme
23
24 onCurrentIconThemeChanged:
25 {
26 control.refresh();
27 }
28}
29
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:47:05 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.