From d6525e790724148331ec5d099dae5da072c085fc Mon Sep 17 00:00:00 2001 From: Marco Bartoli Date: Sun, 15 Dec 2024 23:00:30 +0100 Subject: [PATCH] Fix build on non-windows --- qtbase/src/widgets/styles/qwindowsstyle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qtbase/src/widgets/styles/qwindowsstyle.cpp b/qtbase/src/widgets/styles/qwindowsstyle.cpp index f4e0e7e8..0af3b35a 100644 --- a/qtbase/src/widgets/styles/qwindowsstyle.cpp +++ b/qtbase/src/widgets/styles/qwindowsstyle.cpp @@ -59,7 +59,9 @@ #include +#if defined(Q_OS_WIN) #include "../../plugins/platforms/windows/vxkex.h" +#endif QT_BEGIN_NAMESPACE @@ -256,8 +258,10 @@ void QWindowsStyle::polish(QPalette &pal) QCommonStyle::polish(pal); } +#if defined(Q_OS_WIN) typedef BOOL (WINAPI *GetSystemMetricsForDpiFunc)(int, UINT); typedef BOOL (WINAPI *SystemParametersInfoForDpiFunc)(UINT, UINT, PVOID, UINT, UINT); +#endif int QWindowsStylePrivate::pixelMetricFromSystemDp(QStyle::PixelMetric pm, const QStyleOption *, const QWidget *widget) {