Kirigami2

templates/AbstractChip.qml
1 // SPDX-FileCopyrightText: 2022 Felipe Kinoshita <[email protected]>
2 // SPDX-License-Identifier: GPL-2.0-or-later
3 
4 import QtQuick 2.15
5 import QtQuick.Templates 2.15 as T
6 
7 /**
8  * @brief AbstractChip is a visual object based on QtQuick.Controls.AbstractButton
9  * that provides a friendly way to display predetermined elements
10  * with the visual styling of "tags" or "tokens."
11  *
12  * @see kirigami::Chip
13  * @since org.kde.kirigami 2.19
14  * @inherit QtQuick.Controls.AbstractButton
15  */
16 T.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 signal is emitted when the close button has been clicked.
28  */
29  signal removed()
30 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:02:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.