aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-06-12 20:51:17 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-06-12 20:51:17 +0200
commitc18a591b484db451eb084ec4f1f17057813800df (patch)
tree61da98a76f3b03016c04fd07303b57b533e56ae3
parentdcbb2cfd0e238f788105d7d249f8aac6ad0823e4 (diff)
downloadlibquotient-c18a591b484db451eb084ec4f1f17057813800df.tar.gz
libquotient-c18a591b484db451eb084ec4f1f17057813800df.zip
Adjust to new moc/QMetaType requirements
See https://www.qt.io/blog/whats-new-in-qmetatype-qvariant#qmetatype-knows-your-properties-and-methods-types
-rw-r--r--lib/connection.cpp3
-rw-r--r--lib/room.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 55067bb7..b3006084 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -14,6 +14,9 @@
#include "settings.h"
#include "user.h"
+// NB: since Qt 6, moc_connection.cpp needs Room and User fully defined
+#include "moc_connection.cpp"
+
#include "csapi/account-data.h"
#include "csapi/capabilities.h"
#include "csapi/joining.h"
diff --git a/lib/room.cpp b/lib/room.cpp
index fadcea17..abaf50b7 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -16,6 +16,9 @@
#include "syncdata.h"
#include "user.h"
+// NB: since Qt 6, moc_room.cpp needs User fully defined
+#include "moc_room.cpp"
+
#include "csapi/account-data.h"
#include "csapi/banning.h"
#include "csapi/inviting.h"