From c7c6a2c596637fd4942c7fb80341ca2ef7b47808 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 9 Aug 2012 16:38:56 +0200 Subject: moving scanner logic to ui, new icon --- sowatchui/qml/MainPage.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sowatchui/qml/MainPage.qml') diff --git a/sowatchui/qml/MainPage.qml b/sowatchui/qml/MainPage.qml index b660161..d722b3d 100644 --- a/sowatchui/qml/MainPage.qml +++ b/sowatchui/qml/MainPage.qml @@ -6,6 +6,7 @@ Page { id: mainPage anchors.leftMargin: UiConstants.DefaultMargin anchors.rightMargin: UiConstants.DefaultMargin + orientationLock: PageOrientation.LockPortrait tools: ToolBarLayout { ToolIcon { @@ -30,6 +31,11 @@ Page { anchors.right: parent.right; anchors.verticalCenter: parent.verticalCenter } + + onClicked: { + var page = Qt.createComponent("WatchPage.qml"); + pageStack.push(page); + } } } ScrollDecorator { -- cgit v1.2.3