Replace incorrect Metal config check in nativewindow.h
Change-Id: I6d3718d45e55864169cd41694b0cdf16e9bf8f44 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
a7bb69fb87
commit
88447a0c53
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user