forked from qt-creator/qt-creator
QmlPuppet: Bring back simplified NodeInstanceSignalSpy
A simplified version of NodeInstanceSignalSpy is required to track sub objects. I moved all private API usage to QmlPrivateGate. Change-Id: I86e3e5411eb43777a6b1ab5018a1b8fb9088c666 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -125,8 +125,14 @@ void ObjectNodeInstance::setNodeInstanceServer(NodeInstanceServer *server)
|
||||
m_nodeInstanceServer = server;
|
||||
}
|
||||
|
||||
void ObjectNodeInstance::initializePropertyWatcher(const ObjectNodeInstance::Pointer &objectNodeInstance)
|
||||
{
|
||||
m_signalSpy.setObjectNodeInstance(objectNodeInstance);
|
||||
}
|
||||
|
||||
void ObjectNodeInstance::initialize(const ObjectNodeInstance::Pointer &objectNodeInstance)
|
||||
{
|
||||
initializePropertyWatcher(objectNodeInstance);
|
||||
QmlPrivateGate::registerNodeInstanceMetaObject(objectNodeInstance);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user