Make setting names italic if changed in quality-changes profile

This was the behaviour before.

Contributes to issue CURA-8686.
This commit is contained in:
Ghostkeeper 2022-01-26 14:00:29 +01:00
parent c973be3115
commit 5c71671585
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 3 additions and 1 deletions

View file

@ -174,6 +174,8 @@ class QualitySettingsModel(ListModel):
label = definition.label
if self._i18n_catalog:
label = self._i18n_catalog.i18nc(definition.key + " label", label)
if profile_value_source == "quality_changes":
label = f"<i>{label}</i>" # Make setting name italic if it's derived from the quality-changes profile.
if isinstance(profile_value, SettingFunction):
profile_value_display = self._i18n_catalog.i18nc("@info:status", "Calculated")

View file

@ -53,7 +53,7 @@ Item
color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
Rectangle
Rectangle //Resize handle.
{
anchors
{