mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Correct positioning of tooltip for g-code text area
This commit is contained in:
parent
67a5490907
commit
350dd5db3c
2 changed files with 9 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) 2017 Ultimaker B.V.
|
// Copyright (c) 2019 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.10
|
import QtQuick 2.10
|
||||||
|
@ -357,13 +357,16 @@ Item
|
||||||
|
|
||||||
onHoveredChanged:
|
onHoveredChanged:
|
||||||
{
|
{
|
||||||
if (containsMouse) {
|
if (containsMouse)
|
||||||
|
{
|
||||||
base.showTooltip(
|
base.showTooltip(
|
||||||
base,
|
base,
|
||||||
{ x: 0, y: customCommandControlMouseArea.mapToItem(base, 0, 0).y },
|
{ x: -tooltip.width, y: customCommandControlMouseArea.mapToItem(base, 0, 0).y },
|
||||||
catalog.i18nc("@tooltip of G-code command input", "Send a custom G-code command to the connected printer. Press 'enter' to send the command.")
|
catalog.i18nc("@tooltip of G-code command input", "Send a custom G-code command to the connected printer. Press 'enter' to send the command.")
|
||||||
)
|
)
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
base.hideTooltip()
|
base.hideTooltip()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) 2018 Ultimaker B.V.
|
// Copyright (c) 2019 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
|
@ -371,7 +371,7 @@ Item
|
||||||
contextMenu.provider = provider
|
contextMenu.provider = provider
|
||||||
contextMenu.popup();
|
contextMenu.popup();
|
||||||
}
|
}
|
||||||
onShowTooltip: base.showTooltip(delegate, Qt.point(- settingsView.x - UM.Theme.getSize("default_margin").width, 0), text)
|
onShowTooltip: base.showTooltip(delegate, Qt.point(-settingsView.x - UM.Theme.getSize("default_margin").width, 0), text)
|
||||||
onHideTooltip: base.hideTooltip()
|
onHideTooltip: base.hideTooltip()
|
||||||
onShowAllHiddenInheritedSettings:
|
onShowAllHiddenInheritedSettings:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue