aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpsettings.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2023-11-26 21:29:16 -0500
committerGravatar Chris Xiong <chirs241097@gmail.com> 2023-11-26 21:29:16 -0500
commitf7def0d883fa5cab62ef61b40b9f857245be8e6c (patch)
treed29322dd4be6e98c0740ae6df4dc70eb41614a76 /qmidiplayer-desktop/qmpsettings.cpp
parent60989e52b3f3bc0a95d3e61bd8e59fa4d9b7ab83 (diff)
downloadQMidiPlayer-f7def0d883fa5cab62ef61b40b9f857245be8e6c.tar.xz
Initial Qt 6 port. Many bug fixes.
Diffstat (limited to 'qmidiplayer-desktop/qmpsettings.cpp')
-rw-r--r--qmidiplayer-desktop/qmpsettings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpsettings.cpp b/qmidiplayer-desktop/qmpsettings.cpp
index 6ce542a..70cd720 100644
--- a/qmidiplayer-desktop/qmpsettings.cpp
+++ b/qmidiplayer-desktop/qmpsettings.cpp
@@ -7,7 +7,9 @@
QSettings *qmpSettings::settings = nullptr;
qmpSettings::qmpSettings()
{
+#if QT_VERSION_MAJOR < 6
qRegisterMetaTypeStreamOperators<QPair<QString, QString>>();
+#endif
QString confpath = QStandardPaths::writableLocation(QStandardPaths::StandardLocation::ConfigLocation) + QString("/qmprc");
settings = new QSettings(confpath, QSettings::IniFormat);
if (settings->value("ConfigurationFileRevision").toInt() != QMP_CONFIGURATION_FILE_REV &&