summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2016-12-09 11:11:36 +0100
committerMartin Smith <martin.smith@qt.io>2017-01-04 12:58:37 +0000
commitdd58804cfe691ac356e9d3d6f29840bb0725974c (patch)
treeadccad3f115a1d2cb1ef090525aed4ba2f4e6a26 /src
parent47c4d1378cc1eaffbc19c753726b36d2ff0decc0 (diff)
doc: clangqdoc doesn't need Q_GADGET
This update undefines Q_GADGET when clangqdoc is running. With Q_GADGET defined, clangqdoc expects documentation for QtGadgetHelper in each class where Q_GADGET is used. Note that the documentation for the Q_GADGET macro is still generated. Change-Id: I3e6e6644c2c537c00c44ae77664892e125046daa Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qobjectdefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/kernel/qobjectdefs.h b/src/corelib/kernel/qobjectdefs.h
index f577c6d4b8..ea4046df55 100644
--- a/src/corelib/kernel/qobjectdefs.h
+++ b/src/corelib/kernel/qobjectdefs.h
@@ -240,6 +240,11 @@ private: \
#define Q_SLOT Q_SLOT
#endif //Q_MOC_RUN
+#ifdef Q_CLANG_QDOC
+#undef Q_GADGET
+#define Q_GADGET
+#endif
+
#ifndef QT_NO_META_MACROS
// macro for onaming members
#ifdef METHOD