Commit f11ce7b9 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.
parent 153e6e14
Pipeline #163800 passed with stage
in 5 minutes and 51 seconds
...@@ -27,8 +27,8 @@ Item { ...@@ -27,8 +27,8 @@ Item {
property Window window property Window window
implicitHeight: column.implicitHeight implicitHeight: column.implicitHeight
implicitWidth: column.implicitWidth implicitWidth: column.implicitWidth
readonly property real minimumHeight: column.Layout.minimumHeight readonly property real minimumHeight: column.Layout.minimumHeight + mainItem.implicitHeight
readonly property real minimumWidth: column.Layout.minimumWidth readonly property real minimumWidth: column.Layout.minimumWidth + mainItem.implicitWidth
readonly property int flags: Qt.Dialog readonly property int flags: Qt.Dialog
property alias standardButtons: footerButtonBox.standardButtons property alias standardButtons: footerButtonBox.standardButtons
readonly property int spacing: Kirigami.Units.largeSpacing // standard KDE dialog margins 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