|
|
|
@ -48,6 +48,11 @@ Kirigami.AbstractApplicationWindow { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
readonly property alias dialogButtonBox: footerButtonBox |
|
|
|
readonly property alias dialogButtonBox: footerButtonBox |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Controls whether the accept button is enabled |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
property bool acceptable: true |
|
|
|
|
|
|
|
|
|
|
|
width: column.implicitWidth |
|
|
|
width: column.implicitWidth |
|
|
|
height: column.implicitHeight + footer.implicitHeight |
|
|
|
height: column.implicitHeight + footer.implicitHeight |
|
|
|
minimumHeight: column.Layout.minimumHeight + footer.implicitHeight |
|
|
|
minimumHeight: column.Layout.minimumHeight + footer.implicitHeight |
|
|
|
@ -133,6 +138,13 @@ Kirigami.AbstractApplicationWindow { |
|
|
|
onAccepted: root.accept() |
|
|
|
onAccepted: root.accept() |
|
|
|
onRejected: root.reject() |
|
|
|
onRejected: root.reject() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Binding { |
|
|
|
|
|
|
|
target: footerButtonBox.standardButton(DialogButtonBox.Ok) |
|
|
|
|
|
|
|
property: "enabled" |
|
|
|
|
|
|
|
when: footerButtonBox.standardButton(DialogButtonBox.Ok) |
|
|
|
|
|
|
|
value: root.acceptable |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Repeater { |
|
|
|
Repeater { |
|
|
|
model: root.actions |
|
|
|
model: root.actions |
|
|
|
|
|
|
|
|
|
|
|
|