mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Merge pull request #2037 from Ultimaker/feature_zoom_to_mouse
Added zoom to mouse preference
This commit is contained in:
commit
89c5fb2d15
1 changed files with 16 additions and 0 deletions
|
@ -86,6 +86,8 @@ UM.PreferencesPage
|
||||||
centerOnSelectCheckbox.checked = boolCheck(UM.Preferences.getValue("view/center_on_select"))
|
centerOnSelectCheckbox.checked = boolCheck(UM.Preferences.getValue("view/center_on_select"))
|
||||||
UM.Preferences.resetPreference("view/invert_zoom");
|
UM.Preferences.resetPreference("view/invert_zoom");
|
||||||
invertZoomCheckbox.checked = boolCheck(UM.Preferences.getValue("view/invert_zoom"))
|
invertZoomCheckbox.checked = boolCheck(UM.Preferences.getValue("view/invert_zoom"))
|
||||||
|
UM.Preferences.resetPreference("view/zoom_to_mouse");
|
||||||
|
zoomToMouseCheckbox.checked = boolCheck(UM.Preferences.getValue("view/zoom_to_mouse"))
|
||||||
UM.Preferences.resetPreference("view/top_layer_count");
|
UM.Preferences.resetPreference("view/top_layer_count");
|
||||||
topLayerCountCheckbox.checked = boolCheck(UM.Preferences.getValue("view/top_layer_count"))
|
topLayerCountCheckbox.checked = boolCheck(UM.Preferences.getValue("view/top_layer_count"))
|
||||||
|
|
||||||
|
@ -354,6 +356,20 @@ UM.PreferencesPage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UM.TooltipArea {
|
||||||
|
width: childrenRect.width;
|
||||||
|
height: childrenRect.height;
|
||||||
|
text: catalog.i18nc("@info:tooltip", "Should zooming move in the direction of the mouse?")
|
||||||
|
|
||||||
|
CheckBox
|
||||||
|
{
|
||||||
|
id: zoomToMouseCheckbox
|
||||||
|
text: catalog.i18nc("@action:button", "Zoom toward mouse direction");
|
||||||
|
checked: boolCheck(UM.Preferences.getValue("view/zoom_to_mouse"))
|
||||||
|
onClicked: UM.Preferences.setValue("view/zoom_to_mouse", checked)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UM.TooltipArea {
|
UM.TooltipArea {
|
||||||
width: childrenRect.width
|
width: childrenRect.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue