root node init with context pointer
This commit is contained in:
parent
65d6f97908
commit
6371b3fd82
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
DoricContext::DoricContext(QString contextId, QString source, QString extra) {
|
DoricContext::DoricContext(QString contextId, QString source, QString extra) {
|
||||||
this->mRootNode = new DoricRootNode();
|
this->mRootNode = new DoricRootNode();
|
||||||
|
this->mRootNode->setContext(this);
|
||||||
|
|
||||||
this->mContextId = contextId;
|
this->mContextId = contextId;
|
||||||
this->source = source;
|
this->source = source;
|
||||||
|
@ -28,7 +28,7 @@ void DoricGroupNode::configChildNode() {
|
|||||||
QString id = mChildViewIds.at(idx);
|
QString id = mChildViewIds.at(idx);
|
||||||
QJSValue model = getSubModel(id);
|
QJSValue model = getSubModel(id);
|
||||||
if (model.isUndefined()) {
|
if (model.isUndefined()) {
|
||||||
// getContext()->getDriver()->getRegistry();
|
DoricRegistry *registry = getContext()->getDriver()->getRegistry();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
QString type = model.property("type").toString();
|
QString type = model.property("type").toString();
|
||||||
|
Reference in New Issue
Block a user