Register IntentCategoryModel to be used in QML

We want to be able to repeat on this model.

Contributes to issue CURA-6597.
This commit is contained in:
Ghostkeeper 2019-07-04 11:02:49 +02:00
parent c2b20e5cc6
commit 49a6161ee8
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -62,6 +62,7 @@ from cura.Arranging.ArrangeObjectsJob import ArrangeObjectsJob
from cura.Arranging.ArrangeObjectsAllBuildPlatesJob import ArrangeObjectsAllBuildPlatesJob
from cura.Arranging.ShapeArray import ShapeArray
from cura.Machines.Models.IntentModel import IntentModel
from cura.Machines.Models.IntentCategoryModel import IntentCategoryModel
from cura.Operations.SetParentOperation import SetParentOperation
@ -1070,6 +1071,7 @@ class CuraApplication(QtApplication):
"CustomQualityProfilesDropDownMenuModel", self.getCustomQualityProfilesDropDownMenuModel)
qmlRegisterType(NozzleModel, "Cura", 1, 0, "NozzleModel")
qmlRegisterType(IntentModel, "Cura", 1, 6, "IntentModel")
qmlRegisterType(IntentCategoryModel, "Cura", 1, 6, "IntentCategoryModel")
qmlRegisterType(MaterialSettingsVisibilityHandler, "Cura", 1, 0, "MaterialSettingsVisibilityHandler")
qmlRegisterType(SettingVisibilityPresetsModel, "Cura", 1, 0, "SettingVisibilityPresetsModel")