mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 04:15:54 +08:00
Use UM Dialog for AddMachineWizard
This commit is contained in:
parent
2b2c624e4e
commit
06c5419054
@ -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…
x
Reference in New Issue
Block a user