Simplify SimpleMode tooltips

This commit is contained in:
fieldOfView 2015-12-02 09:43:42 +01:00
parent e3018ed1bb
commit 7212080b42

View File

@ -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."));
}
}
}
}
}