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>
This commit is contained in:
parent
81411cb3a8
commit
32725806c8
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user