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:
fieldOfView 2016-06-08 16:35:10 +02:00
parent 8608468802
commit 485ae53660
3 changed files with 115 additions and 3 deletions

View file

@ -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