summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-11-08 19:58:31 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-11-08 21:11:53 +0000
commit65e4850bda128608bab6b60f73f0c4e8779efae3 (patch)
tree17d49497b8bffde7fa9760d6c9d9911c2fc50800
parentc9e13b4a8b68ac3203668660139a41b3760a2c54 (diff)
downloadqtwebchannel-65e4850bda128608bab6b60f73f0c4e8779efae3.tar.gz
Include <QProperty> explicitly
Don't rely on the transitive include of qproperty.h by qobject.h. Change-Id: I180394ed09dae1bd3106171c17dbe035f6328806 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit f8aa8116eea578d552b69120e8a7271fe8c7a8fb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/webchannel/qmetaobjectpublisher_p.h1
-rw-r--r--tests/auto/qml/testobject.h1
-rw-r--r--tests/auto/webchannel/tst_webchannel.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/webchannel/qmetaobjectpublisher_p.h b/src/webchannel/qmetaobjectpublisher_p.h
index a84eb52..2d25511 100644
--- a/src/webchannel/qmetaobjectpublisher_p.h
+++ b/src/webchannel/qmetaobjectpublisher_p.h
@@ -58,6 +58,7 @@
#include <QMetaObject>
#include <QBasicTimer>
#include <QPointer>
+#include <QProperty>
#include <QJsonObject>
#include <QQueue>
diff --git a/tests/auto/qml/testobject.h b/tests/auto/qml/testobject.h
index 07eaec8..f6dea1b 100644
--- a/tests/auto/qml/testobject.h
+++ b/tests/auto/qml/testobject.h
@@ -31,6 +31,7 @@
#define TESTOBJECT_H
#include <QObject>
+#include <QProperty>
#include <QVariantMap>
QT_BEGIN_NAMESPACE
diff --git a/tests/auto/webchannel/tst_webchannel.h b/tests/auto/webchannel/tst_webchannel.h
index 071498f..9dfe82f 100644
--- a/tests/auto/webchannel/tst_webchannel.h
+++ b/tests/auto/webchannel/tst_webchannel.h
@@ -31,6 +31,7 @@
#define TST_WEBCHANNEL_H
#include <QObject>
+#include <QProperty>
#include <QVariant>
#include <QList>
#include <QJsonValue>