mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-04 18:54:00 +08:00
Simplify SimpleMode tooltips
This commit is contained in:
parent
e3018ed1bb
commit
7212080b42
@ -125,23 +125,11 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
onEntered: {
|
onEntered: {
|
||||||
hoverTimer.start();
|
base.showTooltip(infillCellRight, Qt.point(-infillCellRight.x, parent.height), model.text);
|
||||||
}
|
}
|
||||||
onExited: {
|
onExited: {
|
||||||
hoverTimer.stop();
|
|
||||||
base.hideTooltip();
|
base.hideTooltip();
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
|
||||||
id: hoverTimer;
|
|
||||||
interval: 500;
|
|
||||||
repeat: false;
|
|
||||||
|
|
||||||
onTriggered:
|
|
||||||
{
|
|
||||||
base.showTooltip(infillCellRight, Qt.point(-infillCellRight.x, parent.height), model.text);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label{
|
Label{
|
||||||
@ -224,24 +212,12 @@ Item
|
|||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.NoButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onEntered: {
|
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: {
|
onExited: {
|
||||||
brimHoverTimer.stop();
|
|
||||||
base.hideTooltip();
|
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{
|
CheckBox{
|
||||||
@ -264,24 +240,12 @@ Item
|
|||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.NoButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onEntered: {
|
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: {
|
onExited: {
|
||||||
supportHoverTimer.stop();
|
|
||||||
base.hideTooltip();
|
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