Add remaining int settings from initStage1 to new API

The settings API does not deal with unsigned ints, it is the
responsibility of the calling function to ensure that values are savable
as signed ints.
This commit is contained in:
Vasily
2019-12-03 08:26:10 +01:00
committed by username223
parent 3c3590539d
commit 4eb8a35d6b
3 changed files with 31 additions and 24 deletions
+17
View File
@@ -347,6 +347,23 @@ private:
constexpr static auto intSettingsSize
= static_cast<int>( IntSetting::LAST_ENUMERATOR ) + 1;
std::array<IntSettingValue, intSettingsSize> m_intSettings{
IntSettingValue{ IntSetting::PLAYSPACE_snapTurnAngle,
SettingCategory::Playspace,
QtInfo{ "snapTurnAngle" },
4500 },
IntSettingValue{ IntSetting::PLAYSPACE_smoothTurnRate,
SettingCategory::Playspace,
QtInfo{ "smoothTurnRate" },
100 },
IntSettingValue{ IntSetting::PLAYSPACE_dragComfortFactor,
SettingCategory::Playspace,
QtInfo{ "dragComfortFactor" },
0 },
IntSettingValue{ IntSetting::PLAYSPACE_turnComfortFactor,
SettingCategory::Playspace,
QtInfo{ "turnComfortFactor" },
0 },
IntSettingValue{ IntSetting::UTILITY_alarmHour,
SettingCategory::Utility,
QtInfo{ "alarmHour" },