5import QtQuick.Controls as QQC2
7import Qt.labs.qmlmodels
9import org.kde.kirigami as Kirigami
30 property alias title: titleLabel.text
37 property alias subtitle: subtitleLabel.text
46 property alias actions: actionToolBar.actions
71 parent: applicationWindow().overlay
72 closePolicy: QQC2.Popup.CloseOnEscape
79 Kirigami.OverlayZStacking.layer: Kirigami.OverlayZStacking.FullScreen
80 z: Kirigami.OverlayZStacking.z
87 Layout.fillWidth: true
88 contentItem: RowLayout {
89 spacing: Kirigami.Units.largeSpacing
93 Layout.preferredWidth: root.leading ? root.leading.implicitWidth : 0
94 Layout.preferredHeight: root.leading ? root.leading.implicitHeight : 0
98 Layout.fillWidth: true
99 spacing: Kirigami.Units.smallSpacing
103 Layout.fillWidth: true
104 Layout.maximumWidth: implicitWidth + Kirigami.Units.largeSpacing
105 font.weight: Font.Bold
106 elide: Text.ElideRight
107 textFormat: Text.PlainText
111 Layout.fillWidth: true
112 Layout.maximumWidth: implicitWidth + Kirigami.Units.largeSpacing
114 color: Kirigami.Theme.disabledTextColor
115 elide: Text.ElideRight
116 textFormat: Text.PlainText
119 Kirigami.ActionToolBar {
121 alignment: Qt.AlignRight
122 display: QQC2.AbstractButton.IconOnly
125 Layout.preferredWidth: Kirigami.Units.gridUnit * 2
126 Layout.preferredHeight: Kirigami.Units.gridUnit * 2
127 display: QQC2.AbstractButton.IconOnly
129 action: Kirigami.Action {
130 text: i18nd("kirigami-addons6
", "Close
")
131 icon.name: "dialog-close
"
132 onTriggered: root.close()
135 QQC2.ToolTip.text: text
136 QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
137 QQC2.ToolTip.visible: hovered
141 background: Rectangle {
142 color: Kirigami.Theme.alternateBackgroundColor
149 bottom: parent.bottom
156 Layout.fillWidth: true
157 Layout.fillHeight: true
161 Layout.fillWidth: true
162 Layout.preferredHeight: root.footer ? root.footer.implicitHeight > Kirigami.Units.gridUnit * 12 ? Kirigami.Units.gridUnit * 12 : root.footer.implicitHeight : 0
163 visible: root.footer && !root.hideCaption
168 QQC2.Overlay.modal: Rectangle {
169 color: Qt.rgba(0, 0, 0, 0.5)
176 root.leading.parent = leadingParent;
177 root.leading.anchors.fill = leadingParent;
184 root.content.parent = contentParent;
185 root.content.anchors.fill = contentParent;
192 root.footer.parent = footerParent;
193 root.footer.anchors.fill = footerParent;
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.