Add is_experimental to Qt models and QMLs

CURA-5879
This commit is contained in:
Lipu Fei 2018-11-26 14:48:05 +01:00
parent c9c7ef7d67
commit 2c8ed99281
6 changed files with 41 additions and 5 deletions

View file

@ -17,7 +17,11 @@ Menu
MenuItem
{
text: (model.layer_height != "") ? model.name + " - " + model.layer_height + model.layer_height_unit : model.name
text: {
var full_text = (model.layer_height != "") ? model.name + " - " + model.layer_height + model.layer_height_unit : model.name;
full_text += model.is_experimental ? " - Experimental" : "";
return full_text;
}
checkable: true
checked: Cura.MachineManager.activeQualityOrQualityChangesName == model.name
exclusiveGroup: group