From 469c975a708ed86c834b59ed751a4548c693a7b9 Mon Sep 17 00:00:00 2001 From: 李威 wei.li <108964761+liwey1985@users.noreply.github.com> Date: 周一, 21 4月 2025 15:34:54 +0800 Subject: [PATCH] Fix NSWindowProxy::setSystemButtonVisible not taking effect (#175) --- 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