diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-10 11:05:51 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-10 15:53:03 +0200 |
commit | 32725806c8e5182c14cdd04cf7bcce3ba4effc0f (patch) | |
tree | 1f0b782e6056497236d20e5c4dbe6fe16fbad572 /src/corelib/global | |
parent | 81411cb3a82b97fa80e4ba66b94797abe8d6ef7e (diff) |
Improve documentation signature for native interface accessor
Pick-to: 6.2
Change-Id: I8fd0633fb993cf1544a1fd5d897fe59f8687705a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qnativeinterface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/global/qnativeinterface.h b/src/corelib/global/qnativeinterface.h index 5e5c78beec..9bae22d5ea 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 <typename QNativeInterface> \ + QNativeInterface *nativeInterface() const; +#else #define QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(T) \ template <typename NativeInterface, typename TypeInfo = QNativeInterface::Private::NativeInterface<NativeInterface>, \ typename BaseType = T, std::enable_if_t<TypeInfo::template isCompatibleWith<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) \ |