forked from qt-creator/qt-creator
QmlPuppet: Remove dependency on ObjectNodeInstance in MetaInfo
MetaInfo cannot depend on ObjectNodeInstance. I forward the QObject and the QmlEngine all the way through. The commented code in metainfo.cpp is about defining a context for the root item. The feature is basically unused, but we can bring it back using a callback later. Change-Id: I8f099b06c848e2faeaafc011ac6bd313192a64bd Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -133,7 +133,7 @@ void ObjectNodeInstance::initializePropertyWatcher(const ObjectNodeInstance::Poi
|
||||
void ObjectNodeInstance::initialize(const ObjectNodeInstance::Pointer &objectNodeInstance)
|
||||
{
|
||||
initializePropertyWatcher(objectNodeInstance);
|
||||
QmlPrivateGate::registerNodeInstanceMetaObject(objectNodeInstance);
|
||||
QmlPrivateGate::registerNodeInstanceMetaObject(objectNodeInstance->object(), objectNodeInstance->nodeInstanceServer()->engine());
|
||||
}
|
||||
|
||||
void ObjectNodeInstance::setId(const QString &id)
|
||||
|
||||
Reference in New Issue
Block a user