mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-23 19:01:05 -07:00
Add some extra info to the tooltip if a setting is not used due to the value of it's children
The behavior might make sense to us, but that's probably because we know what the behavior is. The extra info in the tooltip should make it easier to understand Fixes #5525
This commit is contained in:
parent
83361405a4
commit
64523c7baf
1 changed files with 7 additions and 2 deletions
|
|
@ -62,14 +62,19 @@ Item
|
||||||
|
|
||||||
var tooltip = "<b>%1</b>\n<p>%2</p>".arg(definition.label).arg(definition.description)
|
var tooltip = "<b>%1</b>\n<p>%2</p>".arg(definition.label).arg(definition.description)
|
||||||
|
|
||||||
|
if(!propertyProvider.isValueUsed)
|
||||||
|
{
|
||||||
|
tooltip += "<i>%1</i><br/><br/>".arg(catalog.i18nc("@label", "This setting is not used because all the settings that it influences are overriden."))
|
||||||
|
}
|
||||||
|
|
||||||
if (affects_list != "")
|
if (affects_list != "")
|
||||||
{
|
{
|
||||||
tooltip += "<br/><b>%1</b>\n<ul>\n%2</ul>".arg(catalog.i18nc("@label Header for list of settings.", "Affects")).arg(affects_list)
|
tooltip += "<b>%1</b><ul>%2</ul>".arg(catalog.i18nc("@label Header for list of settings.", "Affects")).arg(affects_list)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (affected_by_list != "")
|
if (affected_by_list != "")
|
||||||
{
|
{
|
||||||
tooltip += "<br/><b>%1</b>\n<ul>\n%2</ul>".arg(catalog.i18nc("@label Header for list of settings.", "Affected By")).arg(affected_by_list)
|
tooltip += "<b>%1</b><ul>%2</ul>".arg(catalog.i18nc("@label Header for list of settings.", "Affected By")).arg(affected_by_list)
|
||||||
}
|
}
|
||||||
|
|
||||||
return tooltip
|
return tooltip
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue