X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fharbour-pedalo.qml;h=3194b9e8135b2af2ad85aea9b53126958651913b;hp=829cf95f3337c165db52bf4cf6f60e60faef7100;hb=54ab3ebfadf8cb258561a4641249da8c6469dc0f;hpb=47437fad453dab96a7bd28ffd0584a7c1fda4881 diff --git a/qml/harbour-pedalo.qml b/qml/harbour-pedalo.qml index 829cf95..3194b9e 100644 --- a/qml/harbour-pedalo.qml +++ b/qml/harbour-pedalo.qml @@ -1,10 +1,23 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 import "pages" +import harbour.pedalo.settings 1.0 ApplicationWindow { - initialPage: Component { FirstPage { } } + 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) + } }