ui: Added scroll speed setting to preferences

This commit is contained in:
Eberhard Graether
2016-08-18 12:12:19 +02:00
parent 3d40f4ed4e
commit c269493942
20 changed files with 206 additions and 27 deletions
+10
View File
@@ -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);