mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
Fix unit test due to QualityGroup parent changes
This commit is contained in:
parent
961e1e0d7e
commit
bc524b2c14
4 changed files with 28 additions and 21 deletions
|
@ -111,7 +111,13 @@ class QualityManager(QObject):
|
|||
quality_group_dict = dict()
|
||||
for node in nodes_to_check:
|
||||
if node and node.quality_type:
|
||||
quality_group = QualityGroup(node.getMetaDataEntry("name", ""), node.quality_type)
|
||||
# CURA-6599
|
||||
# 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.
|
||||
quality_group = QualityGroup(node.getMetaDataEntry("name", ""), node.quality_type,
|
||||
parent = CuraApplication.getInstance())
|
||||
quality_group.setGlobalNode(node)
|
||||
quality_group_dict[node.quality_type] = quality_group
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue