mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Add doc for model update
This commit is contained in:
parent
2dd7be1271
commit
d4cb10b061
2 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,11 @@ from .MaterialNode import MaterialNode
|
||||||
from .MaterialGroup import MaterialGroup
|
from .MaterialGroup import MaterialGroup
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# MaterialManager maintains a number of maps and trees for material lookup.
|
||||||
|
# The models GUI and QML use are now only dependent on the MaterialManager. That means as long as the data in
|
||||||
|
# MaterialManager gets updated correctly, the GUI models should be updated correctly too, and the same goes for GUI.
|
||||||
|
#
|
||||||
class MaterialManager(QObject):
|
class MaterialManager(QObject):
|
||||||
|
|
||||||
materialsUpdated = pyqtSignal() # Emitted whenever the material lookup tables are updated.
|
materialsUpdated = pyqtSignal() # Emitted whenever the material lookup tables are updated.
|
||||||
|
|
|
@ -147,6 +147,11 @@ class QualityNode(ContainerNode):
|
||||||
quality_changes_group.addNode(QualityNode(metadata))
|
quality_changes_group.addNode(QualityNode(metadata))
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Similar to MaterialManager, QualityManager maintains a number of maps and trees for material lookup.
|
||||||
|
# The models GUI and QML use are now only dependent on the QualityManager. That means as long as the data in
|
||||||
|
# QualityManager gets updated correctly, the GUI models should be updated correctly too, and the same goes for GUI.
|
||||||
|
#
|
||||||
class QualityManager(QObject):
|
class QualityManager(QObject):
|
||||||
|
|
||||||
qualitiesUpdated = pyqtSignal()
|
qualitiesUpdated = pyqtSignal()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue