ui: Added scroll speed setting to preferences
This commit is contained in:
@@ -113,6 +113,16 @@ int ApplicationSettings::getWindowBaseHeight() const
|
||||
return getValue<int>("application/window_base_height", 500);
|
||||
}
|
||||
|
||||
float ApplicationSettings::getScrollSpeed() const
|
||||
{
|
||||
return getValue<float>("application/scroll_speed", 1.0f);
|
||||
}
|
||||
|
||||
void ApplicationSettings::setScrollSpeed(float scrollSpeed)
|
||||
{
|
||||
setValue<float>("application/scroll_speed", scrollSpeed);
|
||||
}
|
||||
|
||||
int ApplicationSettings::getIndexerThreadCount() const
|
||||
{
|
||||
return getValue<int>("indexing/indexer_thread_count", 4);
|
||||
|
||||
@@ -39,6 +39,10 @@ public:
|
||||
int getWindowBaseWidth() const;
|
||||
int getWindowBaseHeight() const;
|
||||
|
||||
float getScrollSpeed() const;
|
||||
void setScrollSpeed(float scrollSpeed);
|
||||
|
||||
// indexing
|
||||
int getIndexerThreadCount() const;
|
||||
void setIndexerThreadCount(const int count);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user