6pragma ComponentBehavior: Bound
10import QtQuick.Controls as QQC2
11import org.kde.kirigami as Kirigami
76 default property alias mainItem: mainLayout.data
97 property int dialogType: Kirigami.PromptDialog.None
102 property string subtitle
109 property real contentPadding: Kirigami.Units.largeSpacing
114 property real contentTopPadding: contentPadding
119 property real contentBottomPadding: footer.padding === 0 ? contentPadding : 0
124 property real contentLeftPadding: contentPadding
129 property real contentRightPadding: contentPadding
134 property string iconName: switch (dialogType) {
135 case Kirigami.PromptDialog.Success:
136 return "data-success";
137 case Kirigami.PromptDialog.Warning:
138 return "data-warning";
139 case Kirigami.PromptDialog.Error:
141 case Kirigami.PromptDialog.Information:
142 return "data-information";
154 topPadding: root.contentTopPadding
155 leftPadding: root.contentLeftPadding
156 rightPadding: root.contentRightPadding
157 bottomPadding: root.contentBottomPadding
159 contentItem: RowLayout {
160 spacing: Kirigami.Units.largeSpacing
163 source: root.iconName
164 visible: root.iconName.length > 0
166 Layout.preferredWidth: Kirigami.Units.iconSizes.huge
167 Layout.preferredHeight: Kirigami.Units.iconSizes.huge
168 Layout.alignment:
Qt.AlignTop
174 spacing: Kirigami.Units.smallSpacing
176 Layout.fillWidth:
true
183 visible: root.title.length > 0
184 elide: QQC2.Label.ElideRight
185 wrapMode: Text.WordWrap
186 Layout.fillWidth:
true
189 Kirigami.SelectableLabel {
191 wrapMode: TextEdit.Wrap
192 visible: text.length > 0
193 Layout.fillWidth:
true
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:44 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.