mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 13:59:02 +08:00
CURA-4606 update quality profiles model with field LayerHeightWithoutUnitRole
This commit is contained in:
parent
a2f3cdc0be
commit
c76995c926
@ -17,9 +17,10 @@ class QualityProfilesModel(ListModel):
|
||||
NameRole = Qt.UserRole + 2
|
||||
QualityTypeRole = Qt.UserRole + 3
|
||||
LayerHeightRole = Qt.UserRole + 4
|
||||
AvailableRole = Qt.UserRole + 5
|
||||
QualityGroupRole = Qt.UserRole + 6
|
||||
QualityChangesGroupRole = Qt.UserRole + 7
|
||||
LayerHeightWithoutUnitRole = Qt.UserRole + 5
|
||||
AvailableRole = Qt.UserRole + 6
|
||||
QualityGroupRole = Qt.UserRole + 7
|
||||
QualityChangesGroupRole = Qt.UserRole + 8
|
||||
|
||||
def __init__(self, parent = None):
|
||||
super().__init__(parent)
|
||||
@ -28,6 +29,7 @@ class QualityProfilesModel(ListModel):
|
||||
self.addRoleName(self.NameRole, "name")
|
||||
self.addRoleName(self.QualityTypeRole, "quality_type")
|
||||
self.addRoleName(self.LayerHeightRole, "layer_height")
|
||||
self.addRoleName(self.LayerHeightWithoutUnitRole, "layer_height_without_unit")
|
||||
self.addRoleName(self.AvailableRole, "available")
|
||||
self.addRoleName(self.QualityGroupRole, "quality_group")
|
||||
self.addRoleName(self.QualityChangesGroupRole, "quality_changes_group")
|
||||
|
Loading…
x
Reference in New Issue
Block a user