aboutsummaryrefslogtreecommitdiff
path: root/lib/settings.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-06-13 14:10:47 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-06-13 14:10:47 +0200
commitb8a78fe7a2370697eea4517ab000130fe1180715 (patch)
tree563b103f6b1b639e0da6fcde436a29f82f9d5fc8 /lib/settings.cpp
parent67ea5b45701e6bd5bf244039dc60a134d67a4cab (diff)
downloadlibquotient-b8a78fe7a2370697eea4517ab000130fe1180715.tar.gz
libquotient-b8a78fe7a2370697eea4517ab000130fe1180715.zip
Exclude code no more needed with Qt6
Diffstat (limited to 'lib/settings.cpp')
-rw-r--r--lib/settings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/settings.cpp b/lib/settings.cpp
index 703f4320..1d36db27 100644
--- a/lib/settings.cpp
+++ b/lib/settings.cpp
@@ -21,7 +21,9 @@ void Settings::setLegacyNames(const QString& organizationName,
Settings::Settings(QObject* parent) : QSettings(parent)
{
+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
setIniCodec("UTF-8");
+#endif
}
void Settings::setValue(const QString& key, const QVariant& value)