mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Simplify SimpleMode tooltips
This commit is contained in:
parent
e3018ed1bb
commit
7212080b42
1 changed files with 5 additions and 41 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue