Add tooltip for current bed temperature

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-16 14:34:16 +01:00
parent e142f51e12
commit 739775421a
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -182,6 +182,28 @@ Column
anchors.right: bedTargetTemperature.left
anchors.top: parent.top
anchors.margins: UM.Theme.getSize("default_margin").width
MouseArea //For tooltip.
{
id: bedTemperatureTooltipArea
hoverEnabled: true
anchors.fill: parent
onHoveredChanged:
{
if (containsMouse)
{
base.showTooltip(
base,
{x: 0, y: bedCurrentTemperature.mapToItem(base, 0, 0).y},
catalog.i18nc("@tooltip", "The current temperature of the heated bed.")
);
}
else
{
base.hideTooltip();
}
}
}
}
Rectangle //Input field for pre-heat temperature.
{