X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fharbour-pedalo.qml;fp=qml%2Fharbour-pedalo.qml;h=3194b9e8135b2af2ad85aea9b53126958651913b;hp=22ccbbc7b8557c297c7a9cdb0693fdfc78623ee8;hb=48a4da912f9df07681ba68d33475e1d43cfab571;hpb=70180c4c4fd2807d16f90562d6876f3f07d388b1 diff --git a/qml/harbour-pedalo.qml b/qml/harbour-pedalo.qml index 22ccbbc..3194b9e 100644 --- a/qml/harbour-pedalo.qml +++ b/qml/harbour-pedalo.qml @@ -5,7 +5,19 @@ import harbour.pedalo.settings 1.0 ApplicationWindow { + id: app initialPage: Component { MainPage { } } cover: Qt.resolvedUrl("cover/CoverPage.qml") allowedOrientations: defaultAllowedOrientations + + function showMainPage(operationType) { + var first = pageStack.currentPage + var temp = pageStack.previousPage(pageStack.currentPage) + while (temp) { + first = temp + temp = pageStack.previousPage(temp) + } + + pageStack.pop(first, operationType) + } }