diff options
author | Martin Smith <martin.smith@qt.io> | 2019-07-10 11:50:19 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2019-07-10 12:14:13 +0200 |
commit | ffaf3cfc21586febc2bba93c87b130278d07e433 (patch) | |
tree | 21e10dcecffd466576223198eeb8cf6429f313fc /src/corelib/kernel/qvariant.h | |
parent | 605062b21fccff919b7894db91b197d120e528f6 (diff) |
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>
Diffstat (limited to 'src/corelib/kernel/qvariant.h')
-rw-r--r-- | src/corelib/kernel/qvariant.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index 3cc6d559c1..bb9db3d1ad 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -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) { |