Disable use of Qt APIs deprecated in 5.15.0 and earlier versions (#4133)

This commit is contained in:
kornes
2022-11-10 19:11:40 +00:00
committed by GitHub
parent 3303cdc0cb
commit fbfa5e0f41
21 changed files with 36 additions and 36 deletions
+3 -4
View File
@@ -19,7 +19,7 @@
namespace ipc = boost::interprocess;
#ifdef Q_OS_WIN
# include <QProcess>
# include <QSettings>
# include <Windows.h>
# include "singletons/WindowManager.hpp"
@@ -98,9 +98,8 @@ void registerNmManifest(Paths &paths, const QString &manifestFilename,
file.flush();
#ifdef Q_OS_WIN
// clang-format off
QProcess::execute("REG ADD \"" + registryKeyName + "\" /ve /t REG_SZ /d \"" + manifestPath + "\" /f");
// clang-format on
QSettings registry(registryKeyName, QSettings::NativeFormat);
registry.setValue("Default", manifestPath);
#endif
}