Kirigami2
Dialog.qml
143 readonly property real absoluteMaximumHeight: ((parent && parent.height) || Infinity) - Kirigami.Units.largeSpacing * 2
151 readonly property real absoluteMaximumWidth: ((parent && parent.width) || Infinity) - Kirigami.Units.largeSpacing * 2
200 property Component footerLeadingComponent
280 implicitWidth: Math.max(implicitContentWidth, implicitFooterWidth, implicitHeaderWidth) + leftPadding + rightPadding // maximum width enforced from our content (one source of truth) to avoid binding loops
298 y: parent ? Math.round(((parent && parent.height) - height) / 2) + Kirigami.Units.gridUnit * 2 * (1 - opacity) : 0 // move animation
302 NumberAnimation { property: "opacity"; from: 0; to: 1; easing.type: Easing.InOutQuad; duration: Kirigami.Units.longDuration }
305 NumberAnimation { property: "opacity"; from: 1; to: 0; easing.type: Easing.InOutQuad; duration: Kirigami.Units.longDuration }
336 color: Kirigami.ColorUtils.linearInterpolation(Kirigami.Theme.backgroundColor, Kirigami.Theme.textColor, Kirigami.Theme.frameContrast);
351 property real otherHeights: (root.header?.height ?? 0) + (root.footer?.height ?? 0) + root.topPadding + root.bottomPadding;
353 property real calculatedMaximumWidth: Math.min(root.absoluteMaximumWidth, root.maximumWidth) - root.leftPadding - root.rightPadding
354 property real calculatedMaximumHeight: Math.min(root.absoluteMaximumHeight, root.maximumHeight) - root.topPadding - root.bottomPadding
366 We also don't do this declaratively but only we are sure a contentItem is declared/created as just
367 accessing the property would create an internal Flickable, making it impossible to assign custom
380 // -> we expand the dialog's width to accommodate the scrollbar width (to respect the content's desired width)
382 // don't enforce preferred width and height if not set (-1), and expand to a larger implicit size
384 property real preferredHeight: Math.max(root.preferredHeight - otherHeights, calculatedImplicitHeight)
387 property real maximumHeight: calculatedMaximumHeight - otherHeights // we enforce maximum height solely from the content
392 // give an implied width and height to the contentItem so that features like word wrapping/eliding work
413 // if there is nothing in the footer, still maintain a height so that we can create a rounded bottom buffer for the dialog
415 implicitHeight: bufferMode ? Math.round(Kirigami.Units.smallSpacing / 2) : implicitContentHeight + topPadding + bottomPadding
460 // we have to use Button instead of ToolButton, because ToolButton has no visual distinction when disabled
listTAction customFooterActions
This property holds the custom actions displayed in the footer.
Definition Dialog.qml:230
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 11 2025 11:49:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 11 2025 11:49:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.