5import QtQuick.Controls as Controls
9import org.kde.kirigamiaddons.formcard as FormCard
10import org.kde.kirigami as Kirigami
34FormCard.AbstractFormDelegate {
37 property color color: "transparent"
39 icon.name:
"color-picker"
40 onClicked: colorDialog.open()
42 text:
i18ndc(
"kirigami-addons6",
"@action:button",
"Color")
43 Accessible.description: i18ndc("kirigami-addons6", "Accessible description", "Current color \"%1\"", color)
45 contentItem: RowLayout {
49 source:
"color-picker"
50 Layout.rightMargin:
Kirigami.Units.largeSpacing +
Kirigami.Units.smallSpacing
51 implicitWidth: root.icon.width
52 implicitHeight: root.icon.height
56 Layout.fillWidth:
true
58 elide: Text.ElideRight
61 Accessible.ignored:
true
68 Layout.preferredWidth:
Kirigami.Units.iconSizes.smallMedium
69 Layout.preferredHeight:
Kirigami.Units.iconSizes.smallMedium
70 Layout.rightMargin:
Kirigami.Units.largeSpacing +
Kirigami.Units.smallSpacing
74 Layout.leftMargin:
Kirigami.Units.smallSpacing
75 Layout.alignment:
Qt.AlignRight |
Qt.AlignVCenter
76 direction:
Qt.RightArrow
77 visible: root.background.visible
86 root.color = colorDialog.selectedColor;
QString i18ndc(const char *domain, const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:12:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.