From 6d94d3e1d904226cc2583c61cf3eda184f8e8e97 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Fri, 29 Jul 2016 11:25:45 +0200 Subject: [PATCH] Remove Ok/Cancel buttons to better fit in wizard or action dialog CURA-2019 --- DiscoverUM3Action.qml | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/DiscoverUM3Action.qml b/DiscoverUM3Action.qml index d74a39ade7..3d57bb84d1 100644 --- a/DiscoverUM3Action.qml +++ b/DiscoverUM3Action.qml @@ -142,29 +142,19 @@ Cura.MachineAction text: base.selectedPrinter ? base.selectedPrinter.ipAddress : "" } } + + Button + { + text: catalog.i18nc("@action:button", "Ok") + enabled: base.selectedPrinter + onClicked: + { + manager.setKey(base.selectedPrinter.getKey()) + completed() + } + } + } } } - Button - { - text: catalog.i18nc("@action:button", "Ok") - anchors.right: cancelButton.left - anchors.bottom: parent.bottom - onClicked: - { - manager.setKey(base.selectedPrinter.getKey()) - completed() - } - } - Button - { - id: cancelButton - text: catalog.i18nc("@action:button", "Cancel") - anchors.right: discoverUM3Action.right - anchors.bottom: parent.bottom - onClicked: - { - completed() - } - } } \ No newline at end of file