X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fharbour-pedalo.qml;h=3194b9e8135b2af2ad85aea9b53126958651913b;hp=944e65e7d390e0ef2cfa5076978ea11896285cf2;hb=54ab3ebfadf8cb258561a4641249da8c6469dc0f;hpb=0108947ead4cc9e0ff23fee82db2fb1fd7cb2dad diff --git a/qml/harbour-pedalo.qml b/qml/harbour-pedalo.qml index 944e65e..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 { + 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) + } }