Commit f4b7cbb6 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈 Committed by Nate Graham
Browse files

systemdialog: also consider buttonbox for dimensions

otherwise the dialog may be shrunk beyond the space that the buttonbox
desires resulting in cut off buttons (only when the mainItem is small
enough, naturally)


(cherry picked from commit 1faeaf2e)
parent d70c7c47
Pipeline #165785 passed with stage
in 13 minutes and 28 seconds
/*
* SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
* SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
......@@ -27,8 +28,8 @@ Item {
property Window window
implicitHeight: column.implicitHeight
implicitWidth: column.implicitWidth
readonly property real minimumHeight: column.Layout.minimumHeight + mainItem.implicitHeight
readonly property real minimumWidth: column.Layout.minimumWidth + mainItem.implicitWidth
readonly property real minimumHeight: column.Layout.minimumHeight + mainItem.implicitHeight + footerButtonBox.implicitHeight
readonly property real minimumWidth: column.Layout.minimumWidth + mainItem.implicitWidth + footerButtonBox.implicitWidth
readonly property int flags: Qt.Dialog
property alias standardButtons: footerButtonBox.standardButtons
readonly property int spacing: Kirigami.Units.largeSpacing // standard KDE dialog margins
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment