aboutsummaryrefslogtreecommitdiff
path: root/lib/quotient_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/quotient_common.h')
-rw-r--r--lib/quotient_common.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/quotient_common.h b/lib/quotient_common.h
index a5926e8c..3d38ce1f 100644
--- a/lib/quotient_common.h
+++ b/lib/quotient_common.h
@@ -29,13 +29,13 @@
Deprecated Q_DECL_ENUMERATOR_DEPRECATED_X("Use " #Recommended) = Recommended
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
-// The first line is a usual way to indicate a namespace to moc;
-// the second line redeclares the namespace static metaobject with
-// QUOTIENT_API so that dynamically linked clients could serialise
-// flag/enum values from the namespace.
+// The first line forward-declares the namespace static metaobject with
+// QUOTIENT_API so that dynamically linked clients could serialise flag/enum
+// values from the namespace; Qt before 5.14 doesn't help with that. The second
+// line is needed for moc to do its job on the namespace.
#define QUO_NAMESPACE \
-Q_NAMESPACE \
-extern QUOTIENT_API const QMetaObject staticMetaObject;
+ extern QUOTIENT_API const QMetaObject staticMetaObject; \
+ Q_NAMESPACE
#else
// Since Qt 5.14.0, it's all packed in a single macro
#define QUO_NAMESPACE Q_NAMESPACE_EXPORT(QUOTIENT_API)