Use UM Dialog for AddMachineWizard

This commit is contained in:
Arjen Hiemstra 2015-04-29 17:42:09 +02:00
parent 2b2c624e4e
commit 06c5419054

View File

@ -5,23 +5,21 @@ import QtQuick.Window 2.1
import UM 1.0 as UM
Window {
UM.Dialog {
id: base
width: 640
height: 480
//: Add Printer dialog title
title: qsTr("Add Printer");
Rectangle {
anchors.fill: parent;
color: palette.window;
ColumnLayout {
anchors.fill: parent;
anchors.margins: UM.Styles.defaultMargin;
Label {
text: qsTr("Add Printer");
font.pointSize: 18;
}
Label {
text: qsTr("Please select the type of printer:");
}
@ -45,12 +43,9 @@ Window {
Item { Layout.fillWidth: true; Layout.fillHeight: true; }
ExclusiveGroup { id: printerGroup; }
}
RowLayout {
Layout.fillWidth: true
Item { Layout.fillWidth: true; }
rightButtons: [
Button {
text: qsTr("Next");
onClicked: {
@ -59,15 +54,10 @@ Window {
base.visible = false
}
}
}
},
Button {
text: qsTr("Cancel");
onClicked: base.visible = false;
}
}
}
}
SystemPalette { id: palette; colorGroup: SystemPalette.Active }
]
}