From 88447a0c5367a23ac29d24a1bed642265c6ba0f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 18 Apr 2024 11:37:33 +0200 Subject: [PATCH] Replace incorrect Metal config check in nativewindow.h Change-Id: I6d3718d45e55864169cd41694b0cdf16e9bf8f44 Reviewed-by: Laszlo Agocs --- tests/shared/nativewindow.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/shared/nativewindow.h b/tests/shared/nativewindow.h index 932d2d419af..163ca316347 100644 --- a/tests/shared/nativewindow.h +++ b/tests/shared/nativewindow.h @@ -28,7 +28,7 @@ class NativeWindow public: #if defined(Q_OS_MACOS) using Handle = NSView*; -#elif defined(Q_OS_IOS) +#elif defined(QT_PLATFORM_UIKIT) using Handle = UIView*; #elif defined(Q_OS_WIN) using Handle = HWND; @@ -53,7 +53,7 @@ private: Handle m_handle = {}; }; -#if QT_CONFIG(metal) +#if defined(Q_OS_MACOS) || defined(QT_PLATFORM_UIKIT) @interface View : VIEW_BASE @end