10import org.kde.kirigami as Kirigami
12import "private" as Private
39 property string description:
""
45 property alias descriptionItem: internalDescriptionItem
53 property var leading: null
62 property real leadingPadding:
Kirigami.Units.smallSpacing
64 focusPolicy:
Qt.StrongFocus
66 contentItem: RowLayout {
69 Private.ContentItemLoader {
70 Layout.rightMargin: visible ? root.leadingPadding : 0
72 implicitHeight: visible ? root.leading.implicitHeight : 0
73 implicitWidth: visible ? root.leading.implicitWidth : 0
74 contentItem: root.leading
78 visible: root.icon.name !==
""
79 source: root.icon.name
80 color: root.icon.color
81 Layout.rightMargin: (root.icon.name !==
"") ? Private.FormCardUnits.horizontalSpacing : 0
82 implicitWidth: (root.icon.name !==
"") ? root.icon.width : 0
83 implicitHeight: (root.icon.name !==
"") ? root.icon.height : 0
87 Layout.fillWidth:
true
88 spacing: Private.FormCardUnits.verticalSpacing
91 Layout.fillWidth:
true
93 elide: Text.ElideRight
96 color: root.enabled ?
Kirigami.Theme.textColor :
Kirigami.Theme.disabledTextColor
97 Accessible.ignored:
true
101 id: internalDescriptionItem
102 Layout.fillWidth:
true
103 text: root.description
104 color:
Kirigami.Theme.disabledTextColor
105 elide: Text.ElideRight
106 visible: root.description !==
""
108 Accessible.ignored: !visible
113 Layout.leftMargin:
Kirigami.Units.smallSpacing
114 Layout.alignment:
Qt.AlignRight |
Qt.AlignVCenter
115 direction:
Qt.RightArrow
116 visible: root.background.visible
120 Accessible.onPressAction: action ? action.trigger() : root.clicked()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:51:29 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.