diff --git a/resources/qml/Preferences/ProfileTab.qml b/resources/qml/Preferences/ProfileTab.qml index 4a7192d4a7..1bfd8156a4 100644 --- a/resources/qml/Preferences/ProfileTab.qml +++ b/resources/qml/Preferences/ProfileTab.qml @@ -21,18 +21,11 @@ Tab anchors.fill: parent anchors.margins: UM.Theme.getSize("default_margin").width - TableViewColumn + Component { - role: "label" - title: catalog.i18nc("@title:column", "Setting") - width: parent.width * 0.4 - } - TableViewColumn - { - role: "profile_value" - title: catalog.i18nc("@title:column", "Profile") - width: parent.width * 0.18 - delegate: Rectangle + id: itemDelegate + + Rectangle { property var setting: qualitySettings.getItem(styleData.row) height: childrenRect.height @@ -44,14 +37,28 @@ Tab anchors.leftMargin: UM.Theme.getSize("default_margin").width anchors.right: parent.right text: styleData.value - font.weight: (setting.profile_value_source == "quality_changes") ? Font.Bold : Font.Normal - font.strikeout: quality == Cura.MachineManager.activeQualityId && setting.user_value != "" + font.strikeout: styleData.column == 1 && quality == Cura.MachineManager.activeQualityId && setting.user_value != "" + font.italic: setting.profile_value_source == "quality_changes" || (quality == Cura.MachineManager.activeQualityId && setting.user_value != "") opacity: font.strikeout ? 0.5 : 1 color: styleData.textColor elide: Text.ElideRight } } + } + TableViewColumn + { + role: "label" + title: catalog.i18nc("@title:column", "Setting") + width: parent.width * 0.4 + delegate: itemDelegate + } + TableViewColumn + { + role: "profile_value" + title: catalog.i18nc("@title:column", "Profile") + width: parent.width * 0.18 + delegate: itemDelegate } TableViewColumn { @@ -59,12 +66,14 @@ Tab title: catalog.i18nc("@title:column", "Current"); visible: quality == Cura.MachineManager.activeQualityId width: parent.width * 0.18 + delegate: itemDelegate } TableViewColumn { role: "unit" title: catalog.i18nc("@title:column", "Unit") width: parent.width * 0.14 + delegate: itemDelegate } section.property: "category"