mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 15:28:56 -07:00
Fix showing tooltips on control hover
This commit is contained in:
parent
e7224c8c1a
commit
7ef8038145
2 changed files with 11 additions and 9 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue