5import QtQuick.Controls as QQC2
7import org.kde.kirigami as Kirigami
9import "templates" as KT
45 implicitWidth: layout.implicitWidth
46 implicitHeight: toolButton.implicitHeight
55 property alias labelItem: label
57 contentItem: RowLayout {
64 Layout.preferredWidth: Kirigami.Units.iconSizes.small
65 Layout.preferredHeight: Kirigami.Units.iconSizes.small
66 Layout.leftMargin: Kirigami.Units.smallSpacing
67 color: chip.icon.color
69 source: chip.icon.name || chip.icon.source
73 Layout.fillWidth:
true
74 Layout.minimumWidth: Kirigami.Units.gridUnit * 1.5
75 Layout.leftMargin: icon.visible ? Kirigami.Units.smallSpacing : Kirigami.Units.largeSpacing
76 Layout.rightMargin: chip.closable ? Kirigami.Units.smallSpacing : Kirigami.Units.largeSpacing
77 verticalAlignment: Text.AlignVCenter
78 horizontalAlignment: Text.AlignHCenter
80 color: Kirigami.Theme.textColor
81 elide: Text.ElideRight
85 visible: chip.closable
86 text: qsTr(
"Remove Tag")
87 icon.name:
"edit-delete-remove"
88 icon.width: Kirigami.Units.iconSizes.sizeForLabels
89 icon.height: Kirigami.Units.iconSizes.sizeForLabels
90 display: QQC2.AbstractButton.IconOnly
91 onClicked: chip.removed()
95 background: P.DefaultChipBackground {}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:52 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.