summaryrefslogtreecommitdiff
path: root/sowatchui/qml/MainPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'sowatchui/qml/MainPage.qml')
-rw-r--r--sowatchui/qml/MainPage.qml6
1 files changed, 6 insertions, 0 deletions
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 {