summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMårten Nordheim <[email protected]>2023-11-16 12:56:12 +0100
committerMårten Nordheim <[email protected]>2023-11-17 22:32:24 +0100
commitd54d28858f4072fc8ebb935e81bec80537f0ad44 (patch)
tree157fc8c5fcdc57fb4cf3146ab7f32ffc7ac1d8b3
parentf1a9b04f8253c5a3d3bfc4ae8f2a3ec3a0187ba5 (diff)
Fix build with qt-namespace
Add missing include of global module header. Drop unneeded global namespace qualifier for constant in our namespace. Amends 6017695bfa98d8d9a6e5977ec80aafa1a4d3ee4d Change-Id: I04633030af13df3c3359fc09b08b4a5f031013a9 Reviewed-by: Tor Arne Vestbø <[email protected]>
-rw-r--r--src/gui/platform/windows/qwindowsthemecache.cpp2
-rw-r--r--src/gui/platform/windows/qwindowsthemecache_p.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/platform/windows/qwindowsthemecache.cpp b/src/gui/platform/windows/qwindowsthemecache.cpp
index 3cf72f4757e..3bb92e67cac 100644
--- a/src/gui/platform/windows/qwindowsthemecache.cpp
+++ b/src/gui/platform/windows/qwindowsthemecache.cpp
@@ -22,7 +22,7 @@ Q_GLOBAL_STATIC(ThemesCache, themesCache);
QString QWindowsThemeCache::themeName(int theme)
{
return theme >= 0 && theme < int(std::size(themeNames))
- ? QString::fromWCharArray(::themeNames[theme]) : QString();
+ ? QString::fromWCharArray(themeNames[theme]) : QString();
}
HTHEME QWindowsThemeCache::createTheme(int theme, HWND hwnd)
diff --git a/src/gui/platform/windows/qwindowsthemecache_p.h b/src/gui/platform/windows/qwindowsthemecache_p.h
index bc065d47f30..beb724dc5c2 100644
--- a/src/gui/platform/windows/qwindowsthemecache_p.h
+++ b/src/gui/platform/windows/qwindowsthemecache_p.h
@@ -15,6 +15,8 @@
// We mean it.
//
+#include "QtGui/private/qtguiglobal_p.h"
+
#include <QtCore/qt_windows.h>
#include <uxtheme.h>