Commit b9584f2c authored by jriegel's avatar jriegel
Browse files

setting defaults for zoom invert and zoom step for Werners fix of #894

- inverse is now default
- 0.2 is zoom step default
expecting lots of flaming :)
parent f9da20f0
......@@ -71,7 +71,7 @@ const char* CADNavigationStyle::mouseButtons(ViewerMode mode)
case NavigationStyle::DRAGGING:
return QT_TR_NOOP("Press left and middle mouse button");
case NavigationStyle::ZOOMING:
return QT_TR_NOOP("Scroll middle mouse button");
return QT_TR_NOOP("Scroll middle mouse button or middle and cklicking left");
default:
return "No description";
}
......
......@@ -176,7 +176,7 @@
<double>0.050000000000000</double>
</property>
<property name="value">
<double>0.050000000000000</double>
<double>0.200000000000000</double>
</property>
<property name="prefEntry" stdset="0">
<cstring>ZoomStep</cstring>
......@@ -190,7 +190,10 @@
</item>
<item row="5" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxInvertZoom">
<property name="text">
<property name="checked">
<bool>true</bool>
</property>
<property name="text">
<string>Invert zoom</string>
</property>
<property name="prefEntry" stdset="0">
......
......@@ -226,11 +226,11 @@ void NavigationStyle::initialize()
this->shiftdown = FALSE;
this->altdown = FALSE;
this->invertZoom = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetBool("InvertZoom",false);
("User parameter:BaseApp/Preferences/View")->GetBool("InvertZoom",true);
this->zoomAtCursor = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetBool("ZoomAtCursor",false);
this->zoomStep = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetFloat("ZoomStep",0.05f);
("User parameter:BaseApp/Preferences/View")->GetFloat("ZoomStep",0.2f);
}
void NavigationStyle::finalize()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment