diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-12 10:54:05 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-12 10:54:05 +0800 |
| commit | e5429cf6eb8f83be50b4fb7d764375f7c3713265 (patch) | |
| tree | f5a400d5b7373350544c57a212e8f458d8a0b581 /main.qml | |
| parent | b3f865c86c7a000efec39222c4c22b53f757f1b6 (diff) | |
Link view to give it some delay
before user goes to their catalog.
Update the handler to conform to the updated shop results page.
Make the stack push relation more generic, that what view gets
pushed is decided in the C++ controller, not the QML views.
Refactor code.
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -3,13 +3,16 @@ import QtQuick.Controls 2.15 import "larva/features" ApplicationWindow { - property string imageBase signal signUp(string brand) - function pushCatalog() { + function push(view, arg) { busy.visible = false busy.running = false - stack.push("Catalog.qml") + stack.push(view + ".qml", { + "arg": arg + }) + pushed() } + signal pushed() id: window width: 360 height: 640 |