Implement mouse scroll speed setting

Fixes #145
This commit is contained in:
Rasmus Karlsson
2017-12-19 02:47:55 +01:00
parent ba1c9598a4
commit 14e80d5012
4 changed files with 19 additions and 16 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ class SettingsManager : public QObject
Q_OBJECT
using BoolSetting = pajlada::Settings::Setting<bool>;
using FloatSetting = pajlada::Settings::Setting<float>;
public:
void load();
@@ -43,6 +44,7 @@ public:
/// Behaviour
BoolSetting allowDuplicateMessages = {"/behaviour/allowDuplicateMessages", true};
BoolSetting mentionUsersWithAt = {"/behaviour/mentionUsersWithAt", false};
FloatSetting mouseScrollMultiplier = {"/behaviour/mouseScrollMultiplier", 1.0};
/// Commands
BoolSetting allowCommandsAtEnd = {"/commands/allowCommandsAtEnd", false};
@@ -69,7 +71,6 @@ public:
pajlada::Settings::Setting<std::string> preferredQuality;
Setting<float> emoteScale;
Setting<float> mouseScrollMultiplier;
Setting<QString> pathHighlightSound;
Setting<QMap<QString, QPair<bool, bool>>> highlightProperties;