Reduce the amount of QML warning showing up

Contributes to CURA-2006
This commit is contained in:
Arjen Hiemstra 2016-08-10 12:00:03 +02:00
parent 7ba49b4f88
commit 5edeaa1c93
2 changed files with 20 additions and 4 deletions

View File

@ -28,6 +28,11 @@ Tab
section.property: "category"
section.delegate: Label { text: section }
model: Cura.QualitySettingsModel { extruderId: base.extruderId != "" ? base.extruderId : null; quality: base.quality; material: base.material }
model: Cura.QualitySettingsModel
{
extruderId: base.extruderId != "" ? base.extruderId : null;
quality: base.quality != null ? base.quality : "";
material: base.material
}
}
}

View File

@ -175,7 +175,7 @@ UM.ManagementPage
Label {
id: defaultsMessage
visible: currentItem && !currentItem.metadata.has_settings
visible: false
text: catalog.i18nc("@action:label", "This profile has no settings and uses the defaults specified by the printer.")
wrapMode: Text.WordWrap
width: parent.width
@ -197,13 +197,24 @@ UM.ManagementPage
anchors.right: parent.right
anchors.bottom: parent.bottom
ProfileTab { title: catalog.i18nc("@title:tab", "Global Settings"); quality: base.currentItem != null ? base.currentItem.id : ""; material: Cura.MachineManager.allActiveMaterialIds.global }
ProfileTab
{
title: catalog.i18nc("@title:tab", "Global Settings");
quality: base.currentItem != null ? base.currentItem.id : "";
material: Cura.MachineManager.allActiveMaterialIds.global
}
Repeater
{
model: Cura.ExtrudersModel { }
ProfileTab { title: model.name; extruderId: model.id; quality: base.currentItem.id; material: Cura.MachineManager.allActiveMaterialIds[model.id] }
ProfileTab
{
title: model.name;
extruderId: model.id;
quality: base.currentItem != null ? base.currentItem.id : null;
material: Cura.MachineManager.allActiveMaterialIds[model.id]
}
}
}
}