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