Qml2Puppet: Introduce QmlPrivateGate

The goal is to avoid direct usage of private API.
Any access to private QML API is supposed to go through QmlPrivateGate.

NodeInstanceMetaObject is moved into QmlPrivateGate and renamed to just
MetaObject.

Change-Id: Iba0b574605e455b01e7b86306ec3ca47be7b4e58
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Thomas Hartmann
2015-05-19 13:11:39 +02:00
committed by Thomas Hartmann
parent 514cf70615
commit e0a3e25491
9 changed files with 182 additions and 47 deletions
@@ -31,7 +31,7 @@
#include "objectnodeinstance.h"
#include <enumeration.h>
#include <nodeinstancemetaobject.h>
#include <qmlprivategate.h>
#include <QEvent>
#include <QQmlContext>
@@ -172,7 +172,7 @@ void ObjectNodeInstance::setNodeInstanceServer(NodeInstanceServer *server)
void ObjectNodeInstance::initialize(const ObjectNodeInstance::Pointer &objectNodeInstance)
{
NodeInstanceMetaObject::registerNodeInstanceMetaObject(objectNodeInstance);
QmlPrivateGate::registerNodeInstanceMetaObject(objectNodeInstance);
}
void ObjectNodeInstance::setId(const QString &id)