sola.lu
2025-06-06 9dcea027f16c4ce5852da3dfc8aca284c582bd7d
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};