diff options
-rw-r--r-- | lib/settings.cpp | 5 | ||||
-rw-r--r-- | lib/settings.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/settings.cpp b/lib/settings.cpp index 0349e699..5413693d 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -16,6 +16,11 @@ void Settings::setLegacyNames(const QString& organizationName, legacyApplicationName = applicationName; } +Settings::Settings(QObject* parent) : QSettings(parent) +{ + setIniCodec("UTF-8"); +} + void Settings::setValue(const QString& key, const QVariant& value) { QSettings::setValue(key, value); diff --git a/lib/settings.h b/lib/settings.h index 79ebba6c..5a097285 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -39,7 +39,7 @@ public: static void setLegacyNames(const QString& organizationName, const QString& applicationName = {}); - using QSettings::QSettings; + explicit Settings(QObject* parent = nullptr); /// Set the value for a given key /*! If the key exists in the legacy location, it is removed. */ |