mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 00:28:59 +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;
|
||||
|
||||
function showTooltip(item, position, text) {
|
||||
print("omg zomg")
|
||||
tooltip.text = text;
|
||||
position = item.mapToItem(base, position.x, position.y);
|
||||
tooltip.show(position);
|
||||
@ -72,16 +71,19 @@ UM.AngledCornerRectangle {
|
||||
|
||||
onLoaded:
|
||||
{
|
||||
if(item) item.configureSettings = base.configureMachinesAction;
|
||||
if(typeof(item.onShowTooltip) != 'undefined')
|
||||
if(item)
|
||||
{
|
||||
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 {
|
||||
|
@ -1,3 +1,3 @@
|
||||
import UM 1.0 as UM
|
||||
|
||||
UM.SettingView{}
|
||||
UM.SettingView { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user