Replace incorrect Metal config check in nativewindow.h

Change-Id: I6d3718d45e55864169cd41694b0cdf16e9bf8f44
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Tor Arne Vestbø 2024-04-18 11:37:33 +02:00
parent a7bb69fb87
commit 88447a0c53

View File

@ -28,7 +28,7 @@ class NativeWindow
public: public:
#if defined(Q_OS_MACOS) #if defined(Q_OS_MACOS)
using Handle = NSView*; using Handle = NSView*;
#elif defined(Q_OS_IOS) #elif defined(QT_PLATFORM_UIKIT)
using Handle = UIView*; using Handle = UIView*;
#elif defined(Q_OS_WIN) #elif defined(Q_OS_WIN)
using Handle = HWND; using Handle = HWND;
@ -53,7 +53,7 @@ private:
Handle m_handle = {}; Handle m_handle = {};
}; };
#if QT_CONFIG(metal) #if defined(Q_OS_MACOS) || defined(QT_PLATFORM_UIKIT)
@interface View : VIEW_BASE @interface View : VIEW_BASE
@end @end