mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 17:15:56 +08:00
Add tooltip for current bed temperature
Contributes to issue CURA-3161.
This commit is contained in:
parent
e142f51e12
commit
739775421a
@ -182,6 +182,28 @@ Column
|
|||||||
anchors.right: bedTargetTemperature.left
|
anchors.right: bedTargetTemperature.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
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.
|
Rectangle //Input field for pre-heat temperature.
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user