mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Show quality profile and user profile settings side-by-side on Profiles manager
Introduces ContainerSettingsModel, which can combine the settings of instances from multiple containers into one model. Towards CURA-1668
This commit is contained in:
parent
8608468802
commit
485ae53660
3 changed files with 115 additions and 3 deletions
|
@ -128,16 +128,21 @@ UM.ManagementPage
|
|||
anchors.bottom: parent.bottom
|
||||
|
||||
ListView {
|
||||
model: base.currentItem ? base.currentItem.settings: null
|
||||
model: Cura.ContainerSettingsModel{ containers: [base.currentItem.id, Cura.MachineManager.activeUserProfileId] }
|
||||
delegate: Row {
|
||||
property variant setting: model
|
||||
spacing: UM.Theme.getSize("default_margin").width
|
||||
Label {
|
||||
text: model.label
|
||||
elide: Text.ElideMiddle
|
||||
width: scrollView.width / 100 * 40
|
||||
}
|
||||
Label {
|
||||
text: model.value.toString()
|
||||
Repeater {
|
||||
model: setting.values.length
|
||||
Label {
|
||||
text: setting.values[index].toString()
|
||||
width: scrollView.width / 100 * 10
|
||||
}
|
||||
}
|
||||
Label {
|
||||
text: model.unit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue