mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Tooltip for bed temperature displays values where it resolves from. CURA-2007
This commit is contained in:
parent
c0dd19ce08
commit
97f9bcacf1
2 changed files with 14 additions and 1 deletions
|
@ -316,6 +316,17 @@ class ExtruderManager(QObject):
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
## Get all extruder values for a certain setting.
|
||||||
|
#
|
||||||
|
# This is exposed to qml for display purposes
|
||||||
|
#
|
||||||
|
# \param key The key of the setting to retieve values for.
|
||||||
|
#
|
||||||
|
# \return String representing the extruder values
|
||||||
|
@pyqtSlot(str, result="QList<int>")
|
||||||
|
def getInstanceExtruderValues(self, key):
|
||||||
|
return ExtruderManager.getExtruderValues(key)
|
||||||
|
|
||||||
## Get the value for a setting from a specific extruder.
|
## Get the value for a setting from a specific extruder.
|
||||||
#
|
#
|
||||||
# This is exposed to SettingFunction to use in value functions.
|
# This is exposed to SettingFunction to use in value functions.
|
||||||
|
|
|
@ -157,7 +157,9 @@ Item {
|
||||||
var tooltipText = catalog.i18nc("@label", "This setting is always shared between all extruders. Changing it here will change the value for all extruders") + ".";
|
var tooltipText = catalog.i18nc("@label", "This setting is always shared between all extruders. Changing it here will change the value for all extruders") + ".";
|
||||||
if ((resolve != "None") && (stackLevel != 0)) {
|
if ((resolve != "None") && (stackLevel != 0)) {
|
||||||
// We come here if a setting has a resolve and the setting is not manually edited.
|
// We come here if a setting has a resolve and the setting is not manually edited.
|
||||||
tooltipText += " " + catalog.i18nc("@label", "The value is resolved from the individual value ") + value + ".";
|
// Individual value does not work yet.
|
||||||
|
|
||||||
|
tooltipText += " " + catalog.i18nc("@label", "The value is resolved from per-extruder values ") + "[" + ExtruderManager.getInstanceExtruderValues(definition.key) + "].";
|
||||||
}
|
}
|
||||||
base.showTooltip(tooltipText);
|
base.showTooltip(tooltipText);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue