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