diff --git a/resources/qml/SidebarSimple.qml b/resources/qml/SidebarSimple.qml index 296573d3e2..76b59664fd 100644 --- a/resources/qml/SidebarSimple.qml +++ b/resources/qml/SidebarSimple.qml @@ -125,23 +125,11 @@ Item } } onEntered: { - hoverTimer.start(); + base.showTooltip(infillCellRight, Qt.point(-infillCellRight.x, parent.height), model.text); } onExited: { - hoverTimer.stop(); base.hideTooltip(); } - - Timer { - id: hoverTimer; - interval: 500; - repeat: false; - - onTriggered: - { - base.showTooltip(infillCellRight, Qt.point(-infillCellRight.x, parent.height), model.text); - } - } } } Label{ @@ -224,24 +212,12 @@ Item acceptedButtons: Qt.NoButton hoverEnabled: true onEntered: { - brimHoverTimer.start(); + base.showTooltip(brimCheckBox, Qt.point(-helpersCellRight.x, parent.height), + catalog.i18nc("@label", "Enable printing a brim. This will add a single-layer-thick flat area around your object which is easy to cut off afterwards.")); } onExited: { - brimHoverTimer.stop(); base.hideTooltip(); } - - Timer { - id: brimHoverTimer; - interval: 500; - repeat: false; - - onTriggered: - { - base.showTooltip(brimCheckBox, Qt.point(-helpersCellRight.x, parent.height), - catalog.i18nc("@label", "Enable printing a brim. This will add a single-layer-thick flat area around your object which is easy to cut off afterwards.")); - } - } } } CheckBox{ @@ -264,24 +240,12 @@ Item acceptedButtons: Qt.NoButton hoverEnabled: true onEntered: { - supportHoverTimer.start(); + base.showTooltip(supportCheckBox, Qt.point(-helpersCellRight.x, parent.height), + catalog.i18nc("@label", "Enable printing support structures. This will build up supporting structures below the model to prevent the model from sagging or printing in mid air.")); } onExited: { - supportHoverTimer.stop(); base.hideTooltip(); } - - Timer { - id: supportHoverTimer; - interval: 500; - repeat: false; - - onTriggered: - { - base.showTooltip(supportCheckBox, Qt.point(-helpersCellRight.x, parent.height), - catalog.i18nc("@label", "Enable printing support structures. This will build up supporting structures below the model to prevent the model from sagging or printing in mid air.")); - } - } } } }