mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 21:31:15 -07:00
WIP: Rework profile management page
This commit is contained in:
parent
bed2106fc6
commit
96f1264364
9 changed files with 561 additions and 36 deletions
|
|
@ -27,6 +27,7 @@ class NewQualityProfilesModel(ListModel):
|
|||
LayerHeightRole = Qt.UserRole + 4
|
||||
AvailableRole = Qt.UserRole + 5
|
||||
QualityGroupRole = Qt.UserRole + 6
|
||||
QualityChangesGroupRole = Qt.UserRole + 7
|
||||
|
||||
def __init__(self, parent = None):
|
||||
super().__init__(parent)
|
||||
|
|
@ -37,6 +38,7 @@ class NewQualityProfilesModel(ListModel):
|
|||
self.addRoleName(self.LayerHeightRole, "layer_height")
|
||||
self.addRoleName(self.AvailableRole, "available")
|
||||
self.addRoleName(self.QualityGroupRole, "quality_group")
|
||||
self.addRoleName(self.QualityChangesGroupRole, "quality_changes_group")
|
||||
|
||||
# connect signals
|
||||
Application.getInstance().globalContainerStackChanged.connect(self._update)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue