diff --git a/src/plugins/qmldesigner/core/instances/nodeinstancemetaobject.cpp b/src/plugins/qmldesigner/core/instances/nodeinstancemetaobject.cpp
index ffcaf89eae180c917552ed3ac4ad09eaa4ac47b4..a99742dc7788111dfda68b0a561118e4152235c2 100644
--- a/src/plugins/qmldesigner/core/instances/nodeinstancemetaobject.cpp
+++ b/src/plugins/qmldesigner/core/instances/nodeinstancemetaobject.cpp
@@ -2,6 +2,7 @@
 
 #include "objectnodeinstance.h"
 #include <QSharedPointer>
+#include <QMetaProperty>
 #include <qnumeric.h>
 
 namespace QmlDesigner {
diff --git a/src/plugins/qmldesigner/core/instances/nodeinstancemetaobject.h b/src/plugins/qmldesigner/core/instances/nodeinstancemetaobject.h
index fdefd1ee05a9132341263f8d87efb1e54e2915bc..9a877f2322bcc24190301e556a4fafa286cf7fd6 100644
--- a/src/plugins/qmldesigner/core/instances/nodeinstancemetaobject.h
+++ b/src/plugins/qmldesigner/core/instances/nodeinstancemetaobject.h
@@ -1,8 +1,8 @@
 #ifndef NODEINSTANCEMETAOBJECT_H
 #define NODEINSTANCEMETAOBJECT_H
 
+#include <QDeclarativeContext>
 #include <private/qdeclarativeopenmetaobject_p.h>
-#include <private/qdeclarativecontext_p.h>
 
 namespace QmlDesigner {
 namespace Internal {