mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 05:11:04 -07:00
Add a combo box to select active profile
This commit is contained in:
parent
09cfda095b
commit
255caf8693
1 changed files with 23 additions and 0 deletions
|
|
@ -60,6 +60,29 @@ Rectangle {
|
|||
onCurrentModeIndexChanged: UM.Preferences.setValue("cura/active_mode", currentModeIndex);
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true;
|
||||
implicitHeight: UM.Theme.sizes.setting.height;
|
||||
|
||||
Row {
|
||||
spacing: UM.Theme.sizes.default_margin.width;
|
||||
Label {
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
text: "Global Profile";
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
model: UM.ProfilesModel { }
|
||||
textRole: "name"
|
||||
onActivated: UM.MachineManager.setActiveProfile(model.getItem(index).name)
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Save";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loader {
|
||||
id: sidebarContents;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue