Kirigami2
Dialog.qml
275 implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding // maximum width enforced from our content (one source of truth) to avoid binding loops
296 y: Math.round((parent.height - height) / 2) + Kirigami.Units.gridUnit * 2 * (1 - opacity) // move animation
300 NumberAnimation { property: "opacity"; from: 0; to: 1; easing.type: Easing.InOutQuad; duration: Kirigami.Units.longDuration }
303 NumberAnimation { property: "opacity"; from: 1; to: 0; easing.type: Easing.InOutQuad; duration: Kirigami.Units.longDuration }
344 property real otherHeights: root.header.height + root.footer.height + root.topPadding + root.bottomPadding;
346 property real calculatedMaximumWidth: Math.min(root.absoluteMaximumWidth, root.maximumWidth) - root.leftPadding - root.rightPadding
347 property real calculatedMaximumHeight: Math.min(root.absoluteMaximumHeight, root.maximumHeight) - root.topPadding - root.bottomPadding
348 property real calculatedImplicitWidth: (contentChildren.length === 1 && contentChildren[0].implicitWidth > 0
350 : (contentItem.implicitWidth > 0 ? contentItem.implicitWidth : contentItem.width)) + leftPadding + rightPadding
351 property real calculatedImplicitHeight: (contentChildren.length === 1 && contentChildren[0].implicitHeight > 0
353 : (contentItem.implicitHeight > 0 ? contentItem.implicitHeight : contentItem.height)) + topPadding + bottomPadding
362 We also don't do this declaratively but only we are sure a contentItem is declared/created as just
363 accessing the property would create an internal flickable, making it impossible to assign custom
372 // -> we expand the dialog's width to accommodate the scrollbar width (to respect the content's desired width)
375 property real preferredWidth: (root.preferredWidth >= 0 ? root.preferredWidth : calculatedImplicitWidth)
376 property real preferredHeight: root.preferredHeight >= 0 ? root.preferredHeight - otherHeights : calculatedImplicitHeight
379 property real maximumHeight: calculatedMaximumHeight - otherHeights // we enforce maximum height solely from the content
384 // give an implied width and height to the contentItem so that features like word wrapping/eliding work
392 property real maximumWidthHint: contentControl.calculatedMaximumWidth - contentControl.leftPadding - contentControl.rightPadding
407 bottomPadding: verticalPadding + headerSeparator.implicitHeight // add space for bottom separator
430 readonly property bool tallHeader: parent.height > (Kirigami.Units.iconSizes.smallMedium + Kirigami.Units.largeSpacing + Kirigami.Units.largeSpacing)
466 // if there is nothing in the footer, still maintain a height so that we can create a rounded bottom buffer for the dialog
471 topPadding: bufferMode ? 0 : footerSeparator.implicitHeight // add space for the separator above the footer
511 // we have to use Button instead of ToolButton, because ToolButton has no visual distinction when disabled
AKONADI_MIME_EXPORT const char Header[]
QStringView level(QStringView ifopt)
QStringList filter(QStringView str, Qt::CaseSensitivity cs) const const
AlignVCenter
ElideRight
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:46 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:46 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.