root node init with context pointer

This commit is contained in:
王劲鹏 2021-02-20 17:02:26 +08:00 committed by osborn
parent 65d6f97908
commit 6371b3fd82
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
DoricContext::DoricContext(QString contextId, QString source, QString extra) {
this->mRootNode = new DoricRootNode();
this->mRootNode->setContext(this);
this->mContextId = contextId;
this->source = source;

View File

@ -28,7 +28,7 @@ void DoricGroupNode::configChildNode() {
QString id = mChildViewIds.at(idx);
QJSValue model = getSubModel(id);
if (model.isUndefined()) {
// getContext()->getDriver()->getRegistry();
DoricRegistry *registry = getContext()->getDriver()->getRegistry();
continue;
}
QString type = model.property("type").toString();