mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 08:39:01 +08:00
Prettier number display in Profiles page. CURA-2006
This commit is contained in:
parent
83b89d09d8
commit
80214d07bc
@ -10,6 +10,7 @@ import UM.Logger
|
|||||||
import UM.Qt
|
import UM.Qt
|
||||||
import UM.Settings
|
import UM.Settings
|
||||||
|
|
||||||
|
|
||||||
class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
||||||
KeyRole = Qt.UserRole + 1
|
KeyRole = Qt.UserRole + 1
|
||||||
LabelRole = Qt.UserRole + 2
|
LabelRole = Qt.UserRole + 2
|
||||||
@ -149,7 +150,7 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
|||||||
"key": definition.key,
|
"key": definition.key,
|
||||||
"label": definition.label,
|
"label": definition.label,
|
||||||
"unit": definition.unit,
|
"unit": definition.unit,
|
||||||
"profile_value": profile_value,
|
"profile_value": "" if profile_value is None else str(profile_value), # it is for display only
|
||||||
"user_value": user_value,
|
"user_value": "" if user_value is None else str(user_value),
|
||||||
"category": current_category
|
"category": current_category
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user