Commit 3ba58398 authored by Nate Graham's avatar Nate Graham
Browse files

Set a sane minimum size

We need to take into account the main item's dimensions in the minimum
width and height properties.


(cherry picked from commit f11ce7b9)
parent 5e4344da
Pipeline #163801 passed with stage
in 5 minutes and 56 seconds
......@@ -27,8 +27,8 @@ Item {
property Window window
implicitHeight: column.implicitHeight
implicitWidth: column.implicitWidth
readonly property real minimumHeight: column.Layout.minimumHeight
readonly property real minimumWidth: column.Layout.minimumWidth
readonly property real minimumHeight: column.Layout.minimumHeight + mainItem.implicitHeight
readonly property real minimumWidth: column.Layout.minimumWidth + mainItem.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