mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
parent
2d1128f088
commit
72d31d2ae5
1 changed files with 12 additions and 1 deletions
|
@ -18,6 +18,18 @@ Button
|
||||||
checkable: true
|
checkable: true
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
|
onHoveredChanged:
|
||||||
|
{
|
||||||
|
if(hovered && (buttonTextMetrics.elidedText != buttonText.text || perObjectSettingsInfo.visible))
|
||||||
|
{
|
||||||
|
tooltip.show()
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
tooltip.hide()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
onClicked: Cura.SceneController.changeSelection(index)
|
onClicked: Cura.SceneController.changeSelection(index)
|
||||||
|
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
|
@ -185,7 +197,6 @@ Button
|
||||||
{
|
{
|
||||||
id: tooltip
|
id: tooltip
|
||||||
tooltipText: objectItemButton.text + perObjectSettingsInfo.tooltipText
|
tooltipText: objectItemButton.text + perObjectSettingsInfo.tooltipText
|
||||||
visible: objectItemButton.hovered && (buttonTextMetrics.elidedText != buttonText.text || perObjectSettingsInfo.visible)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.I18nCatalog
|
UM.I18nCatalog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue