mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 13:51:12 -07:00
Fix missing import
This commit is contained in:
parent
f867f3485e
commit
55a5464ed3
1 changed files with 1 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ class QualityManager(QObject):
|
||||||
# For some reason, QML will get null or fail to convert type for MachineManager.activeQualityChangesGroup() to
|
# For some reason, QML will get null or fail to convert type for MachineManager.activeQualityChangesGroup() to
|
||||||
# a QObject. Setting the object ownership to QQmlEngine.CppOwnership doesn't work, but setting the object
|
# a QObject. Setting the object ownership to QQmlEngine.CppOwnership doesn't work, but setting the object
|
||||||
# parent to application seems to work.
|
# parent to application seems to work.
|
||||||
|
from cura.CuraApplication import CuraApplication
|
||||||
quality_group = QualityGroup(node.getMetaDataEntry("name", ""), node.quality_type,
|
quality_group = QualityGroup(node.getMetaDataEntry("name", ""), node.quality_type,
|
||||||
parent = CuraApplication.getInstance())
|
parent = CuraApplication.getInstance())
|
||||||
quality_group.setGlobalNode(node)
|
quality_group.setGlobalNode(node)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue