diff --git a/doric-Qt/example/app/demo/DoricDemoBridge.cpp b/doric-Qt/example/app/demo/DoricDemoBridge.cpp index 18bf76d7..c2bac698 100644 --- a/doric-Qt/example/app/demo/DoricDemoBridge.cpp +++ b/doric-Qt/example/app/demo/DoricDemoBridge.cpp @@ -30,18 +30,21 @@ void DoricDemoBridge::navigate(QVariant route) { name = "LayoutDemo.js"; break; case 5: - name = "ModalDemo.js"; + name = "LayoutTestDemo.js"; break; case 6: - name = "NetworkDemo.js"; + name = "ModalDemo.js"; break; case 7: - name = "PopoverDemo.js"; + name = "NetworkDemo.js"; break; case 8: - name = "SimpleDemo.js"; + name = "PopoverDemo.js"; break; case 9: + name = "SimpleDemo.js"; + break; + case 10: name = "Snake.js"; break; } diff --git a/doric-Qt/example/app/main.qml b/doric-Qt/example/app/main.qml index 606b0250..14b81098 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: 10 + model: 11 delegate: Rectangle { Column { anchors.centerIn: parent @@ -33,14 +33,16 @@ ApplicationWindow { case 4: return "LayoutDemo.js" case 5: - return "ModalDemo.js" + return "LayoutTestDemo.js" case 6: - return "NetworkDemo.js" + return "ModalDemo.js" case 7: - return "PopoverDemo.js" + return "NetworkDemo.js" case 8: - return "SimpleDemo.js" + return "PopoverDemo.js" case 9: + return "SimpleDemo.js" + case 10: return "Snake.js" } } diff --git a/doric-Qt/example/app/qml.qrc b/doric-Qt/example/app/qml.qrc index ac65e72b..d675b6f8 100644 --- a/doric-Qt/example/app/qml.qrc +++ b/doric-Qt/example/app/qml.qrc @@ -10,6 +10,7 @@ ../../../doric-demo/bundle/src/Gobang.js ../../../doric-demo/bundle/src/ImageDemo.js ../../../doric-demo/bundle/src/LayoutDemo.js + ../../../doric-demo/bundle/src/LayoutTestDemo.js ../../../doric-demo/bundle/src/ModalDemo.js ../../../doric-demo/bundle/src/NetworkDemo.js ../../../doric-demo/bundle/src/PopoverDemo.js