add gobang entry
This commit is contained in:
parent
0c151c435f
commit
b8aded79b7
@ -11,9 +11,12 @@ void DoricDemoBridge::navigate(QVariant route) {
|
|||||||
QString name;
|
QString name;
|
||||||
switch (route.toInt()) {
|
switch (route.toInt()) {
|
||||||
case 0:
|
case 0:
|
||||||
name = "SimpleDemo.es5.js";
|
name = "Gobang.es5.js";
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
name = "SimpleDemo.es5.js";
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
name = "Snake.es5.js";
|
name = "Snake.es5.js";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 4.14.1, 2021-03-16T12:29:54. -->
|
<!-- Written by QtCreator 4.14.1, 2021-03-17T18:58:53. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<file alias="doric-lib.es5.js">../../doric-js/bundle/doric-lib.es5.js</file>
|
<file alias="doric-lib.es5.js">../../doric-js/bundle/doric-lib.es5.js</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/doric/bundles">
|
<qresource prefix="/doric/bundles">
|
||||||
|
<file alias="Gobang.es5.js">../../doric-demo/bundle/src/Gobang.es5.js</file>
|
||||||
<file alias="SimpleDemo.es5.js">../../doric-demo/bundle/src/SimpleDemo.es5.js</file>
|
<file alias="SimpleDemo.es5.js">../../doric-demo/bundle/src/SimpleDemo.es5.js</file>
|
||||||
<file alias="Snake.es5.js">../../doric-demo/bundle/src/Snake.es5.js</file>
|
<file alias="Snake.es5.js">../../doric-demo/bundle/src/Snake.es5.js</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
@ -12,7 +12,7 @@ ApplicationWindow {
|
|||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
model: 2
|
model: 3
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
Column {
|
Column {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
@ -20,8 +20,10 @@ ApplicationWindow {
|
|||||||
text: {
|
text: {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
return "SimpleDemo.es5.js"
|
return "Gobang.es5.js"
|
||||||
case 1:
|
case 1:
|
||||||
|
return "SimpleDemo.es5.js"
|
||||||
|
case 2:
|
||||||
return "Snake.es5.js"
|
return "Snake.es5.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user