Kirigami-addons
5import QtQuick.Controls as QQC2
7import Qt.labs.qmlmodels
9import org.kde.kirigami as Kirigami
28 property alias title: titleLabel.text
35 property alias subtitle: subtitleLabel.text
44 property alias actions: actionToolBar.actions
69 parent: applicationWindow().overlay
70 closePolicy: QQC2.Popup.CloseOnEscape
77 Kirigami.OverlayZStacking.layer: Kirigami.OverlayZStacking.FullScreen
78 z: Kirigami.OverlayZStacking.z
85 Layout.fillWidth: true
86 contentItem: RowLayout {
87 spacing: Kirigami.Units.largeSpacing
91 Layout.preferredWidth: root.leading ? root.leading.implicitWidth : 0
92 Layout.preferredHeight: root.leading ? root.leading.implicitHeight : 0
96 Layout.fillWidth: true
97 spacing: Kirigami.Units.smallSpacing
101 Layout.fillWidth: true
102 Layout.maximumWidth: implicitWidth + Kirigami.Units.largeSpacing
103 font.weight: Font.Bold
104 elide: Text.ElideRight
105 textFormat: Text.PlainText
109 Layout.fillWidth: true
110 Layout.maximumWidth: implicitWidth + Kirigami.Units.largeSpacing
112 color: Kirigami.Theme.disabledTextColor
113 elide: Text.ElideRight
114 textFormat: Text.PlainText
117 Kirigami.ActionToolBar {
119 alignment: Qt.AlignRight
120 display: QQC2.AbstractButton.IconOnly
123 Layout.preferredWidth: Kirigami.Units.gridUnit * 2
124 Layout.preferredHeight: Kirigami.Units.gridUnit * 2
125 display: QQC2.AbstractButton.IconOnly
127 action: Kirigami.Action {
128 text: i18nd("kirigami-addons6
", "Close
")
129 icon.name: "dialog-close
"
130 onTriggered: root.close()
133 QQC2.ToolTip.text: text
134 QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
135 QQC2.ToolTip.visible: hovered
139 background: Rectangle {
140 color: Kirigami.Theme.alternateBackgroundColor
147 bottom: parent.bottom
154 Layout.fillWidth: true
155 Layout.fillHeight: true
159 Layout.fillWidth: true
160 Layout.preferredHeight: root.footer ? root.footer.implicitHeight > Kirigami.Units.gridUnit * 12 ? Kirigami.Units.gridUnit * 12 : root.footer.implicitHeight : 0
161 visible: root.footer && !root.hideCaption
166 QQC2.Overlay.modal: Rectangle {
167 color: Qt.rgba(0, 0, 0, 0.5)
174 root.leading.parent = leadingParent;
175 root.leading.anchors.fill = leadingParent;
182 root.content.parent = contentParent;
183 root.content.anchors.fill = contentParent;
190 root.footer.parent = footerParent;
191 root.footer.anchors.fill = footerParent;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:46:57 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.