Kirigami2

templates/Chip.qml
1// SPDX-FileCopyrightText: 2022 Felipe Kinoshita <kinofhek@gmail.com>
2// SPDX-License-Identifier: LGPL-2.0-or-later
3
4import QtQuick
5import QtQuick.Templates as T
6
7/**
8 * @brief Chip is a visual object based on AbstractButton
9 * that provides a friendly way to display predetermined elements
10 * with the visual styling of "tags" or "tokens."
11 *
12 * @see Chip
13 * @since 2.19
14 * @inherit QtQuick.Controls.AbstractButton
15 */
16T.AbstractButton {
17 id: chip
18
19 /**
20 * @brief This property holds whether or not to display a close button.
21 *
22 * default: ``true``
23 */
24 property bool closable: true
25
26 /**
27 * @brief This property holds whether the icon should be masked or not. This controls the Kirigami.Icon.isMask property.
28 *
29 * default: ``false``
30 */
31 property bool iconMask: false
32
33 /**
34 * @brief This signal is emitted when the close button has been clicked.
35 */
36 signal removed()
37}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.