ui: Added setting for graph zoom on mouse wheel by default to preferences
On popular demand. bug id = 237
This commit is contained in:
@@ -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", "");
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user