mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Fix QML errors
CURA-6849
This commit is contained in:
parent
2d59271a69
commit
ba805b9da3
1 changed files with 16 additions and 2 deletions
|
@ -38,14 +38,28 @@ Tab
|
||||||
property var setting: qualitySettings.getItem(styleData.row)
|
property var setting: qualitySettings.getItem(styleData.row)
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
width: (parent != null) ? parent.width : 0
|
width: (parent != null) ? parent.width : 0
|
||||||
text: (styleData.value.substr(0,1) == "=") ? styleData.value : ""
|
text:
|
||||||
|
{
|
||||||
|
if (styleData.value === undefined)
|
||||||
|
{
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return (styleData.value.substr(0,1) == "=") ? styleData.value : ""
|
||||||
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
text: (styleData.value.substr(0,1) == "=") ? catalog.i18nc("@info:status", "Calculated") : styleData.value
|
text:
|
||||||
|
{
|
||||||
|
if (styleData.value === undefined)
|
||||||
|
{
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return (styleData.value.substr(0,1) == "=") ? catalog.i18nc("@info:status", "Calculated") : styleData.value
|
||||||
|
}
|
||||||
font.strikeout: styleData.column == 1 && setting.user_value != "" && base.isQualityItemCurrentlyActivated
|
font.strikeout: styleData.column == 1 && setting.user_value != "" && base.isQualityItemCurrentlyActivated
|
||||||
font.italic: setting.profile_value_source == "quality_changes" || (setting.user_value != "" && base.isQualityItemCurrentlyActivated)
|
font.italic: setting.profile_value_source == "quality_changes" || (setting.user_value != "" && base.isQualityItemCurrentlyActivated)
|
||||||
opacity: font.strikeout ? 0.5 : 1
|
opacity: font.strikeout ? 0.5 : 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue