diff --git a/doric-Qt/doric/demo/DoricDemoBridge.cpp b/doric-Qt/doric/demo/DoricDemoBridge.cpp index 618d5b49..18bf76d7 100644 --- a/doric-Qt/doric/demo/DoricDemoBridge.cpp +++ b/doric-Qt/doric/demo/DoricDemoBridge.cpp @@ -18,27 +18,30 @@ void DoricDemoBridge::navigate(QVariant route) { name = "Counter.js"; break; case 1: - name = "Gobang.js"; + name = "EffectsDemo.js"; break; case 2: - name = "ImageDemo.js"; + name = "Gobang.js"; break; case 3: - name = "LayoutDemo.js"; + name = "ImageDemo.js"; break; case 4: - name = "ModalDemo.js"; + name = "LayoutDemo.js"; break; case 5: - name = "NetworkDemo.js"; + name = "ModalDemo.js"; break; case 6: - name = "PopoverDemo.js"; + name = "NetworkDemo.js"; break; case 7: - name = "SimpleDemo.js"; + name = "PopoverDemo.js"; break; case 8: + name = "SimpleDemo.js"; + break; + case 9: name = "Snake.js"; break; } diff --git a/doric-Qt/doric/qml.qrc b/doric-Qt/doric/qml.qrc index c4aed130..1ff7af28 100644 --- a/doric-Qt/doric/qml.qrc +++ b/doric-Qt/doric/qml.qrc @@ -9,6 +9,7 @@ ../../doric-demo/bundle/src/Counter.js + ../../doric-demo/bundle/src/EffectsDemo.js ../../doric-demo/bundle/src/Gobang.js ../../doric-demo/bundle/src/ImageDemo.js ../../doric-demo/bundle/src/LayoutDemo.js diff --git a/doric-Qt/doric/resources/main.qml b/doric-Qt/doric/resources/main.qml index 181d3bb7..606b0250 100644 --- a/doric-Qt/doric/resources/main.qml +++ b/doric-Qt/doric/resources/main.qml @@ -15,7 +15,7 @@ ApplicationWindow { ListView { width: parent.width - model: 9 + model: 10 delegate: Rectangle { Column { anchors.centerIn: parent @@ -25,20 +25,22 @@ ApplicationWindow { case 0: return "Counter.js" case 1: - return "Gobang.js" + return "EffectsDemo.js" case 2: - return "ImageDemo.js" + return "Gobang.js" case 3: - return "LayoutDemo.js" + return "ImageDemo.js" case 4: - return "ModalDemo.js" + return "LayoutDemo.js" case 5: - return "NetworkDemo.js" + return "ModalDemo.js" case 6: - return "PopoverDemo.js" + return "NetworkDemo.js" case 7: - return "SimpleDemo.js" + return "PopoverDemo.js" case 8: + return "SimpleDemo.js" + case 9: return "Snake.js" } }