mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:55:53 +08:00
Fix showing tooltips on control hover
This commit is contained in:
parent
e7224c8c1a
commit
7ef8038145
@ -15,7 +15,6 @@ UM.AngledCornerRectangle {
|
|||||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||||
|
|
||||||
function showTooltip(item, position, text) {
|
function showTooltip(item, position, text) {
|
||||||
print("omg zomg")
|
|
||||||
tooltip.text = text;
|
tooltip.text = text;
|
||||||
position = item.mapToItem(base, position.x, position.y);
|
position = item.mapToItem(base, position.x, position.y);
|
||||||
tooltip.show(position);
|
tooltip.show(position);
|
||||||
@ -72,16 +71,19 @@ UM.AngledCornerRectangle {
|
|||||||
|
|
||||||
onLoaded:
|
onLoaded:
|
||||||
{
|
{
|
||||||
if(item) item.configureSettings = base.configureMachinesAction;
|
if(item)
|
||||||
if(typeof(item.onShowTooltip) != 'undefined')
|
|
||||||
{
|
{
|
||||||
item.showTooltip.connect(base.showTooltip)
|
item.configureSettings = base.configureMachinesAction;
|
||||||
|
if(item.onShowTooltip != undefined)
|
||||||
|
{
|
||||||
|
item.showTooltip.connect(base.showTooltip)
|
||||||
|
}
|
||||||
|
if(item.onHideTooltip != undefined)
|
||||||
|
{
|
||||||
|
item.hideTooltip.connect(base.hideTooltip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//onShowTooltip: base.showTooltip(item,position,text)
|
|
||||||
//onHideTooltip: base.hideTooltip()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SaveButton {
|
SaveButton {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
import UM 1.0 as UM
|
import UM 1.0 as UM
|
||||||
|
|
||||||
UM.SettingView{}
|
UM.SettingView { }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user