doc: Enable a declaration for qdoc
A declaration of fromStdVariant() was not visible to qdoc because it was ifdef'ed out. This update ensures that qdoc sees the declaration. Change-Id: I4b00a895aa61175296ec80806b43311eff4f25ca Reviewed-by: Paul Wicking <paul.wicking@qt.io>bb10
parent
605062b21f
commit
ffaf3cfc21
|
|
@ -367,7 +367,7 @@ class Q_CORE_EXPORT QVariant
|
|||
static inline QVariant fromValue(const T &value)
|
||||
{ return qVariantFromValue(value); }
|
||||
|
||||
#if QT_HAS_INCLUDE(<variant>) && __cplusplus >= 201703L
|
||||
#if (QT_HAS_INCLUDE(<variant>) && __cplusplus >= 201703L) || defined(Q_CLANG_QDOC)
|
||||
template<typename... Types>
|
||||
static inline QVariant fromStdVariant(const std::variant<Types...> &value)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue