From 91274c58b1772dfe38d3fcab291693141e822684 Mon Sep 17 00:00:00 2001 From: Daniel <49284193+dnlkrs@users.noreply.github.com> Date: 周五, 06 12月 2024 21:55:30 +0800 Subject: [PATCH] Fix WindowsRegistryKey for Qt 6.8.1 (#154) --- src/core/qwindowkit_windows.cpp | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/core/qwindowkit_windows.cpp b/src/core/qwindowkit_windows.cpp index 51a6f33..a9cc371 100644 --- a/src/core/qwindowkit_windows.cpp +++ b/src/core/qwindowkit_windows.cpp @@ -85,6 +85,10 @@ reinterpret_cast<unsigned char *>(&value), &size) == ERROR_SUCCESS; return qMakePair(value, ok); } +#elif QT_VERSION < QT_VERSION_CHECK(6, 8, 1) + WindowsRegistryKey::WindowsRegistryKey(HKEY parentHandle, QStringView subKey, REGSAM permissions, REGSAM access) + : QWinRegistryKey(parentHandle, subKey, permissions, access) + { + } #endif - } \ No newline at end of file -- Gitblit v1.9.1