From ac1a62b2a76e4d15e412b9579b80da2dafbc6d6a Mon Sep 17 00:00:00 2001
From: SineStriker <55847490+SineStriker@users.noreply.github.com>
Date: 周一, 19 5月 2025 15:38:12 +0800
Subject: [PATCH] Update qmsetup

---
 src/core/qwindowkit_windows.h |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/core/qwindowkit_windows.h b/src/core/qwindowkit_windows.h
index d6c0afe..aad3775 100644
--- a/src/core/qwindowkit_windows.h
+++ b/src/core/qwindowkit_windows.h
@@ -5,6 +5,14 @@
 #ifndef QWINDOWKIT_WINDOWS_H
 #define QWINDOWKIT_WINDOWS_H
 
+#ifndef _USER32_
+#  define _USER32_
+#endif
+
+#ifndef _DWMAPI_
+#  define _DWMAPI_
+#endif
+
 #include <QtCore/qt_windows.h>
 #include <QtCore/qglobal.h>
 
@@ -145,7 +153,7 @@
 
         void close();
         QString stringValue(QStringView subKey) const;
-        QPair<DWORD, bool> dwordValue(QStringView subKey) const;
+        std::pair<DWORD, bool> dwordValue(QStringView subKey) const;
 
     private:
         HKEY m_key;
@@ -166,10 +174,10 @@
             : QWinRegistryKey(parentHandle, subKey, permissions, access) {
         }
 
-        inline QPair<DWORD, bool> dwordValue(QStringView subKey) const;
+        inline std::pair<DWORD, bool> dwordValue(QStringView subKey) const;
     };
 
-    inline QPair<DWORD, bool> WindowsRegistryKey::dwordValue(QStringView subKey) const {
+    inline std::pair<DWORD, bool> WindowsRegistryKey::dwordValue(QStringView subKey) const {
         const auto val = value<DWORD>(subKey);
         if (!val) {
             return {0, false};

--
Gitblit v1.9.1