diff --git a/doric-Qt/example/app/demo/DoricDemoBridge.cpp b/doric-Qt/example/app/demo/DoricDemoBridge.cpp index 1a181441..f66643f3 100644 --- a/doric-Qt/example/app/demo/DoricDemoBridge.cpp +++ b/doric-Qt/example/app/demo/DoricDemoBridge.cpp @@ -53,6 +53,9 @@ void DoricDemoBridge::navigate(QVariant route) { case 12: name = "StorageDemo.js"; break; + case 13: + name = "TextDemo.js"; + break; } QString script = DoricUtils::readAssetFile("/doric/bundles", name); diff --git a/doric-Qt/example/app/main.qml b/doric-Qt/example/app/main.qml index ae4d6524..147b67e4 100644 --- a/doric-Qt/example/app/main.qml +++ b/doric-Qt/example/app/main.qml @@ -15,7 +15,7 @@ ApplicationWindow { ListView { width: parent.width - model: 13 + model: 14 delegate: Rectangle { Column { anchors.centerIn: parent @@ -48,6 +48,8 @@ ApplicationWindow { return "Snake.js" case 12: return "StorageDemo.js" + case 13: + return "TextDemo.js" } } } diff --git a/doric-Qt/example/app/qml.qrc b/doric-Qt/example/app/qml.qrc index 57f85702..168d1688 100644 --- a/doric-Qt/example/app/qml.qrc +++ b/doric-Qt/example/app/qml.qrc @@ -18,6 +18,7 @@ ../../../doric-demo/bundle/src/ScrollerDemo.js ../../../doric-demo/bundle/src/Snake.js ../../../doric-demo/bundle/src/StorageDemo.js + ../../../doric-demo/bundle/src/TextDemo.js ../../../doric-js/bundle/doric-sandbox.js