mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -06:00
Allow machine actions to reference the dialog they are shown in
This way they can respond to the onAccepted and onRejected actions of the dialog Contributes to CURA-2019
This commit is contained in:
parent
dc6482853a
commit
a9ed562a58
2 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,10 @@ import QtQuick 2.2
|
|||
Item
|
||||
{
|
||||
id: contentItem
|
||||
|
||||
// Point to the dialog containing the displayItem
|
||||
property var dialog
|
||||
|
||||
// Connect the finished property change to completed signal.
|
||||
property var finished: manager.finished
|
||||
onFinishedChanged: if(manager.finished) {completed()}
|
||||
|
|
|
@ -106,6 +106,7 @@ UM.ManagementPage
|
|||
{
|
||||
contents = content;
|
||||
content.onCompleted.connect(hide)
|
||||
content.dialog = actionDialog
|
||||
}
|
||||
rightButtons: Button
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue