add command

This commit is contained in:
王劲鹏 2021-06-01 10:50:39 +08:00 committed by osborn
parent 3597c5972a
commit 69e550886b
3 changed files with 7 additions and 0 deletions

View File

@ -34,3 +34,7 @@ void DoricShaderPlugin::render(QString jsValueString, QString callbackId) {
},
DoricThreadMode::UI);
}
void DoricShaderPlugin::command(QString jsValueString, QString callbackId) {
qCritical() << "command: " << jsValueString << " " << callbackId;
}

View File

@ -11,6 +11,8 @@ public:
using DoricNativePlugin::DoricNativePlugin;
Q_INVOKABLE void render(QString jsValueString, QString callbackId);
Q_INVOKABLE void command(QString jsValueString, QString callbackId);
};
#endif // SHADERPLUGIN_H

View File

@ -25,6 +25,7 @@ DoricViewNode *DoricSliderNode::getSubNodeById(QString id) {
return childNodes.at(i);
}
}
return nullptr;
}
void DoricSliderNode::blendSubNode(QJsonValue subProperties) {