add storage demo & plugin
This commit is contained in:
@@ -47,6 +47,9 @@ void DoricDemoBridge::navigate(QVariant route) {
|
||||
case 10:
|
||||
name = "Snake.js";
|
||||
break;
|
||||
case 11:
|
||||
name = "StorageDemo.js";
|
||||
break;
|
||||
}
|
||||
QString script = DoricUtils::readAssetFile("/doric/bundles", name);
|
||||
|
||||
|
@@ -14,7 +14,7 @@ int main(int argc, char *argv[]) {
|
||||
QQmlApplicationEngine engine;
|
||||
qmlRegisterType<FlexLayoutService>("pub.doric.widget", 1, 0,
|
||||
"FlexLayoutService");
|
||||
// const QUrl url(QStringLiteral("qrc:/doric/qml/test-layout.qml"));
|
||||
// const QUrl url(QStringLiteral("qrc:/test-layout.qml"));
|
||||
const QUrl url(QStringLiteral("qrc:/main.qml"));
|
||||
QObject::connect(
|
||||
&engine, &QQmlApplicationEngine::objectCreated, &app,
|
||||
|
@@ -15,7 +15,7 @@ ApplicationWindow {
|
||||
|
||||
ListView {
|
||||
width: parent.width
|
||||
model: 11
|
||||
model: 12
|
||||
delegate: Rectangle {
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
@@ -44,6 +44,8 @@ ApplicationWindow {
|
||||
return "SimpleDemo.js"
|
||||
case 10:
|
||||
return "Snake.js"
|
||||
case 11:
|
||||
return "StorageDemo.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -16,6 +16,7 @@
|
||||
<file alias="PopoverDemo.js">../../../doric-demo/bundle/src/PopoverDemo.js</file>
|
||||
<file alias="SimpleDemo.js">../../../doric-demo/bundle/src/SimpleDemo.js</file>
|
||||
<file alias="Snake.js">../../../doric-demo/bundle/src/Snake.js</file>
|
||||
<file alias="StorageDemo.js">../../../doric-demo/bundle/src/StorageDemo.js</file>
|
||||
</qresource>
|
||||
<qresource prefix="/doric">
|
||||
<file alias="doric-sandbox.js">../../../doric-js/bundle/doric-sandbox.js</file>
|
||||
|
Reference in New Issue
Block a user