mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-03 17:24:21 +08:00
Simplify SimpleMode tooltips
This commit is contained in:
parent
e3018ed1bb
commit
7212080b42
@ -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."));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user