6import org.kde.kirigami as Kirigami
54 property string explanation
60 property alias hoveredLink: label.hoveredLink
67 signal linkHovered(string link)
74 signal linkActivated(string link)
76 topPadding: Kirigami.Units.gridUnit
77 bottomPadding: Kirigami.Units.gridUnit
80 width: Kirigami.Units.iconSizes.medium
81 height: Kirigami.Units.iconSizes.medium
84 Accessible.description: explanation
87 contentItem: ColumnLayout {
88 id: placeholderMessage
90 spacing: Kirigami.Units.smallSpacing
93 visible: source !== undefined
96 Layout.alignment: Qt.AlignHCenter
97 Layout.preferredWidth: root.icon.width
98 Layout.preferredHeight: root.icon.height
100 color: root.icon.color
103 if (root.icon.source.length > 0) {
104 return root.icon.source
105 } else if (root.icon.name.length > 0) {
106 return root.icon.name
114 visible: text.length > 0
117 type: Kirigami.Heading.Primary
121 Layout.fillWidth: true
122 horizontalAlignment: Qt.AlignHCenter
123 verticalAlignment: Qt.AlignVCenter
125 wrapMode: Text.WordWrap
127 Accessible.ignored: true
130 Kirigami.SelectableLabel {
133 text: root.explanation
134 visible: root.explanation.length > 0
137 horizontalAlignment: Qt.AlignHCenter
138 wrapMode: Text.WordWrap
140 Layout.fillWidth: true
142 onLinkHovered: link => root.linkHovered(link)
143 onLinkActivated: link => root.linkActivated(link)
145 Accessible.ignored: true
148 visible: root.visible
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:50 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.