mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:35:58 +08:00
Remove another workaround in construction of QualityGroup
Like the previous commit. Done during Turbo Testing and Tooling.
This commit is contained in:
parent
6c0772cd4a
commit
faa32ed33e
@ -111,14 +111,7 @@ class QualityManager(QObject):
|
|||||||
quality_group_dict = dict()
|
quality_group_dict = dict()
|
||||||
for node in nodes_to_check:
|
for node in nodes_to_check:
|
||||||
if node and node.quality_type:
|
if node and node.quality_type:
|
||||||
# CURA-6599
|
quality_group = QualityGroup(node.getMetaDataEntry("name", ""), node.quality_type)
|
||||||
# Same as QualityChangesGroup.
|
|
||||||
# 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
|
|
||||||
# parent to application seems to work.
|
|
||||||
from cura.CuraApplication import CuraApplication
|
|
||||||
quality_group = QualityGroup(node.getMetaDataEntry("name", ""), node.quality_type,
|
|
||||||
parent = CuraApplication.getInstance())
|
|
||||||
quality_group.setGlobalNode(node)
|
quality_group.setGlobalNode(node)
|
||||||
quality_group_dict[node.quality_type] = quality_group
|
quality_group_dict[node.quality_type] = quality_group
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user