Browse Source

Make setting names italic if changed in quality-changes profile

This was the behaviour before.

Contributes to issue CURA-8686.
Ghostkeeper 3 years ago
parent
commit
5c71671585
2 changed files with 3 additions and 1 deletions
  1. 2 0
      cura/Machines/Models/QualitySettingsModel.py
  2. 1 1
      resources/qml/TableView.qml

+ 2 - 0
cura/Machines/Models/QualitySettingsModel.py

@@ -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")

+ 1 - 1
resources/qml/TableView.qml

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