summaryrefslogtreecommitdiffhomepage
path: root/opentrack/mappings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/mappings.hpp')
-rw-r--r--opentrack/mappings.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/opentrack/mappings.hpp b/opentrack/mappings.hpp
index 86126db9..7f949f2d 100644
--- a/opentrack/mappings.hpp
+++ b/opentrack/mappings.hpp
@@ -6,6 +6,8 @@ using namespace options;
#include "../qfunctionconfigurator/functionconfig.h"
#include "main-settings.hpp"
+static constexpr const char* settings_group = "opentrack-2.3";
+
class Mapping {
public:
Mapping(QString primary,
@@ -22,7 +24,7 @@ public:
name2(secondary)
{
// XXX TODO move all this qsettings boilerplate into a single header -sh 20141004
- QSettings settings("opentrack");
+ QSettings settings(settings_group);
QString currentFile = settings.value ( "SettingsFile", QCoreApplication::applicationDirPath() + "/settings/default.ini" ).toString();
QSettings iniFile(currentFile, QSettings::IniFormat);
curve.loadSettings(iniFile, primary);
@@ -54,7 +56,7 @@ public:
void load_mappings()
{
- QSettings settings("opentrack");
+ QSettings settings(settings_group);
QString currentFile = settings.value ( "SettingsFile", QCoreApplication::applicationDirPath() + "/settings/default.ini" ).toString();
QSettings iniFile( currentFile, QSettings::IniFormat );
@@ -66,7 +68,7 @@ public:
}
void save_mappings()
{
- QSettings settings("opentrack");
+ QSettings settings(settings_group);
QString currentFile = settings.value("SettingsFile", QCoreApplication::applicationDirPath() + "/settings/default.ini").toString();
QSettings iniFile(currentFile, QSettings::IniFormat);