|
@@ -24,11 +24,14 @@ Window
|
|
|
|
|
|
minimumWidth: 580 * screenScaleFactor
|
|
minimumWidth: 580 * screenScaleFactor
|
|
minimumHeight: 600 * screenScaleFactor
|
|
minimumHeight: 600 * screenScaleFactor
|
|
|
|
+ maximumWidth: minimumWidth
|
|
|
|
+ maximumHeight: minimumHeight
|
|
|
|
|
|
color: UM.Theme.getColor("main_background")
|
|
color: UM.Theme.getColor("main_background")
|
|
|
|
|
|
property var model: null // Needs to be set by whoever is using this dialog.
|
|
property var model: null // Needs to be set by whoever is using this dialog.
|
|
property alias progressBarVisible: wizardPanel.progressBarVisible
|
|
property alias progressBarVisible: wizardPanel.progressBarVisible
|
|
|
|
+ property alias hasCancelButton: cancelButton.visible
|
|
|
|
|
|
onVisibilityChanged:
|
|
onVisibilityChanged:
|
|
{
|
|
{
|
|
@@ -51,4 +54,20 @@ Window
|
|
target: model
|
|
target: model
|
|
onAllFinished: dialog.hide()
|
|
onAllFinished: dialog.hide()
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ Cura.SecondaryButton
|
|
|
|
+ {
|
|
|
|
+ id: cancelButton
|
|
|
|
+
|
|
|
|
+ text: catalog.i18nc("@button", "Cancel")
|
|
|
|
+
|
|
|
|
+ visible: false
|
|
|
|
+
|
|
|
|
+ anchors.left: parent.left
|
|
|
|
+ anchors.bottom: parent.bottom
|
|
|
|
+ anchors.margins: UM.Theme.getSize("default_margin").width
|
|
|
|
+
|
|
|
|
+ enabled: true
|
|
|
|
+ onClicked: dialog.visible = false
|
|
|
|
+ }
|
|
}
|
|
}
|