summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-04-18 11:37:33 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-05-01 14:24:06 +0200
commit88447a0c5367a23ac29d24a1bed642265c6ba0f1 (patch)
tree9eb064a245aa52f03594ec8ec781b20f34ee23e6
parenta7bb69fb87219673a530af0143660267a3ffd2d8 (diff)
Replace incorrect Metal config check in nativewindow.h
Change-Id: I6d3718d45e55864169cd41694b0cdf16e9bf8f44 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r--tests/shared/nativewindow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shared/nativewindow.h b/tests/shared/nativewindow.h
index 932d2d419a..163ca31634 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