diff --git a/src/corelib/global/qnativeinterface.h b/src/corelib/global/qnativeinterface.h index 5e5c78beece..9bae22d5ea4 100644 --- a/src/corelib/global/qnativeinterface.h +++ b/src/corelib/global/qnativeinterface.h @@ -163,6 +163,11 @@ namespace QNativeInterface::Private { } // QNativeInterface::Private // Declares an accessor for the native interface +#ifdef Q_QDOC +#define QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(T) \ + template \ + QNativeInterface *nativeInterface() const; +#else #define QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(T) \ template , \ typename BaseType = T, std::enable_if_t, bool> = true> \ @@ -174,6 +179,7 @@ namespace QNativeInterface::Private { protected: \ void *resolveInterface(const char *name, int revision) const; \ public: +#endif // Provides a definition for the interface destructor #define QT_DEFINE_NATIVE_INTERFACE_2(Namespace, InterfaceClass) \