From 32725806c8e5182c14cdd04cf7bcce3ba4effc0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 10 Aug 2021 11:05:51 +0200 Subject: [PATCH] Improve documentation signature for native interface accessor Pick-to: 6.2 Change-Id: I8fd0633fb993cf1544a1fd5d897fe59f8687705a Reviewed-by: Fabian Kosmale Reviewed-by: Paul Wicking --- src/corelib/global/qnativeinterface.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) \