ui: Added setting for graph zoom on mouse wheel by default to preferences

On popular demand.

bug id = 237
This commit is contained in:
Eberhard Graether
2016-10-25 22:52:36 +02:00
parent 2e10c65491
commit 76fb7c4e6c
6 changed files with 87 additions and 26 deletions
+10
View File
@@ -306,6 +306,16 @@ int ApplicationSettings::getControlsMouseForwardButton() const
return getValue<int>("controls/mouse_forward_button", 0x10);
}
bool ApplicationSettings::getControlsGraphZoomOnMouseWheel() const
{
return getValue<bool>("controls/graph_zoom_on_mouse_wheel", false);
}
void ApplicationSettings::setControlsGraphZoomOnMouseWheel(bool zoomingDefault)
{
setValue<bool>("controls/graph_zoom_on_mouse_wheel", zoomingDefault);
}
std::string ApplicationSettings::getLicenseString() const
{
return getValue<std::string>("user/license/license", "");
+3
View File
@@ -93,6 +93,9 @@ public:
int getControlsMouseBackButton() const;
int getControlsMouseForwardButton() const;
bool getControlsGraphZoomOnMouseWheel() const;
void setControlsGraphZoomOnMouseWheel(bool zoomingDefault);
// license
std::string getLicenseString() const;
void setLicenseString(const std::string& licenseString);