diff options
author | Katja Marttila <katja.marttila@qt.io> | 2022-05-18 12:28:11 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2022-05-27 07:21:24 +0000 |
commit | fc37cb9824b1c73a88f9a1e495e814bafa19fc8d (patch) | |
tree | 17645708f382b1d534575970c1faec9344e9aad3 /tests | |
parent | b7430d40e2abf4983a6633eeac73f81ffa5f1eb9 (diff) |
Replace QSettingsWrapper::Format with QSettings::Format
This changes allows in follow-up commits to access windows registy with
other than just NativeFormat. This is needed for 32-bit applications to
access 64-bit registry and 64-bit application s to access 32-bit
registry.
Change-Id: I0b88f4eaa499e53e10162ae5343b95d06ddbfc27
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/installer/clientserver/tst_clientserver.cpp | 3 | ||||
-rw-r--r-- | tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/installer/clientserver/tst_clientserver.cpp b/tests/auto/installer/clientserver/tst_clientserver.cpp index ffd96d14e..5aa40a5a3 100644 --- a/tests/auto/installer/clientserver/tst_clientserver.cpp +++ b/tests/auto/installer/clientserver/tst_clientserver.cpp @@ -331,8 +331,7 @@ private slots: RemoteClient::instance().init(socketName, QLatin1String("SomeKey"), Protocol::Mode::Debug, Protocol::StartAs::User); - QSettingsWrapper wrapper(static_cast<QSettingsWrapper::Format>(format), - QSettingsWrapper::UserScope, "digia", "clientserver"); + QSettingsWrapper wrapper(format, QSettingsWrapper::UserScope, "digia", "clientserver"); QCOMPARE(wrapper.isConnectedToServer(), false); wrapper.clear(); diff --git a/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp b/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp index 313cdf677..baf954a44 100644 --- a/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp +++ b/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp @@ -70,7 +70,7 @@ private: core->installDefaultComponentsSilently(); QSettingsWrapper user(QLatin1String("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\" - "CurrentVersion\\Explorer\\User Shell Folders"), QSettingsWrapper::NativeFormat); + "CurrentVersion\\Explorer\\User Shell Folders"), QSettings::NativeFormat); //Replace %USERS% from "Programs" const QString programs = replaceWindowsEnvironmentVariables(user.value(QLatin1String("Programs"), QString()).toString()); const QString startMenuDir = programs + QDir::separator() + "Qt Installer Framework Unit Test"; |