Expose intent model to QML

CURA-6534
This commit is contained in:
Jaime van Kessel 2019-06-05 09:57:42 +02:00
parent 69038c9e75
commit 2d8c19203e
4 changed files with 5 additions and 1 deletions

View file

@ -61,6 +61,7 @@ from cura.Arranging.Arrange import Arrange
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.Operations.SetParentOperation import SetParentOperation
@ -1069,6 +1070,7 @@ class CuraApplication(QtApplication):
qmlRegisterSingletonType(CustomQualityProfilesDropDownMenuModel, "Cura", 1, 0,
"CustomQualityProfilesDropDownMenuModel", self.getCustomQualityProfilesDropDownMenuModel)
qmlRegisterType(NozzleModel, "Cura", 1, 0, "NozzleModel")
qmlRegisterType(IntentModel, "Cura", 1, 6, "IntentModel")
qmlRegisterType(MaterialSettingsVisibilityHandler, "Cura", 1, 0, "MaterialSettingsVisibilityHandler")
qmlRegisterType(SettingVisibilityPresetsModel, "Cura", 1, 0, "SettingVisibilityPresetsModel")

View file

@ -2,7 +2,7 @@
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Optional
from PyQt5.QtCore.QObject import QObject
from PyQt5.QtCore import QObject
from UM.Qt.ListModel import ListModel
from PyQt5.QtCore import Qt

View file

@ -1,6 +1,7 @@
[general]
version = 4
name = Smooth (TEST INTENT)
definition = fdmprinter
[metadata]
setting_version = 7

View file

@ -1,6 +1,7 @@
[general]
version = 4
name = Strong (TEST INTENT)
definition = fdmprinter
[metadata]
setting_version = 7