mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Prettier number display in Profiles page. CURA-2006
This commit is contained in:
parent
83b89d09d8
commit
80214d07bc
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue