mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 04:41:06 -07:00
Use UM Dialog for AddMachineWizard
This commit is contained in:
parent
2b2c624e4e
commit
06c5419054
1 changed files with 41 additions and 51 deletions
|
|
@ -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 }
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue