mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Improve models
Contributes to CURA-5162, CURA-5378
This commit is contained in:
parent
08b325ee04
commit
cb713eea6a
4 changed files with 23 additions and 13 deletions
|
@ -23,6 +23,7 @@ class BaseMaterialsModel(ListModel):
|
|||
ContainerNodeRole = Qt.UserRole + 7
|
||||
ColorCodeRole = Qt.UserRole + 8
|
||||
GUIDRole = Qt.UserRole + 9
|
||||
IsFavoriteRole = Qt.UserRole + 10
|
||||
|
||||
extruderPositionChanged = pyqtSignal()
|
||||
|
||||
|
@ -40,6 +41,7 @@ class BaseMaterialsModel(ListModel):
|
|||
self.addRoleName(self.ColorRole, "color_name")
|
||||
self.addRoleName(self.ColorCodeRole, "color_code")
|
||||
self.addRoleName(self.ContainerNodeRole, "container_node")
|
||||
self.addRoleName(self.IsFavoriteRole, "is_favorite")
|
||||
|
||||
self._extruder_position = 0
|
||||
self._extruder_stack = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue