diff --git a/doric-Qt/doric/demo/DoricDemoBridge.cpp b/doric-Qt/doric/demo/DoricDemoBridge.cpp index 20ec7dd8..79313892 100644 --- a/doric-Qt/doric/demo/DoricDemoBridge.cpp +++ b/doric-Qt/doric/demo/DoricDemoBridge.cpp @@ -13,12 +13,15 @@ void DoricDemoBridge::navigate(QVariant route) { QString name; switch (route.toInt()) { case 0: - name = "Gobang.es5.js"; + name = "Counter.es5.js"; break; case 1: - name = "SimpleDemo.es5.js"; + name = "Gobang.es5.js"; break; case 2: + name = "SimpleDemo.es5.js"; + break; + case 3: name = "Snake.es5.js"; break; } diff --git a/doric-Qt/doric/qml.qrc b/doric-Qt/doric/qml.qrc index 790f2ea9..c3930386 100644 --- a/doric-Qt/doric/qml.qrc +++ b/doric-Qt/doric/qml.qrc @@ -8,6 +8,7 @@ ../../doric-js/bundle/doric-lib.es5.js + ../../doric-demo/bundle/src/Counter.es5.js ../../doric-demo/bundle/src/Gobang.es5.js ../../doric-demo/bundle/src/SimpleDemo.es5.js ../../doric-demo/bundle/src/Snake.es5.js diff --git a/doric-Qt/doric/resources/main.qml b/doric-Qt/doric/resources/main.qml index cf0d2498..b2b00d8b 100644 --- a/doric-Qt/doric/resources/main.qml +++ b/doric-Qt/doric/resources/main.qml @@ -12,7 +12,7 @@ ApplicationWindow { ListView { width: parent.width - model: 3 + model: 4 delegate: Rectangle { Column { anchors.centerIn: parent @@ -20,10 +20,12 @@ ApplicationWindow { text: { switch (index) { case 0: - return "Gobang.es5.js" + return "Counter.es5.js" case 1: - return "SimpleDemo.es5.js" + return "Gobang.es5.js" case 2: + return "SimpleDemo.es5.js" + case 3: return "Snake.es5.js" } }