diff --git a/doric-Qt/example/doric/plugin/DoricShaderPlugin.cpp b/doric-Qt/example/doric/plugin/DoricShaderPlugin.cpp index 6da90c9e..2c7648a6 100644 --- a/doric-Qt/example/doric/plugin/DoricShaderPlugin.cpp +++ b/doric-Qt/example/doric/plugin/DoricShaderPlugin.cpp @@ -34,3 +34,7 @@ void DoricShaderPlugin::render(QString jsValueString, QString callbackId) { }, DoricThreadMode::UI); } + +void DoricShaderPlugin::command(QString jsValueString, QString callbackId) { + qCritical() << "command: " << jsValueString << " " << callbackId; +} diff --git a/doric-Qt/example/doric/plugin/DoricShaderPlugin.h b/doric-Qt/example/doric/plugin/DoricShaderPlugin.h index c7186135..474f5a8c 100644 --- a/doric-Qt/example/doric/plugin/DoricShaderPlugin.h +++ b/doric-Qt/example/doric/plugin/DoricShaderPlugin.h @@ -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 diff --git a/doric-Qt/example/doric/shader/slider/DoricSliderNode.cpp b/doric-Qt/example/doric/shader/slider/DoricSliderNode.cpp index 93901f9f..d076206c 100644 --- a/doric-Qt/example/doric/shader/slider/DoricSliderNode.cpp +++ b/doric-Qt/example/doric/shader/slider/DoricSliderNode.cpp @@ -25,6 +25,7 @@ DoricViewNode *DoricSliderNode::getSubNodeById(QString id) { return childNodes.at(i); } } + return nullptr; } void DoricSliderNode::blendSubNode(QJsonValue subProperties) {