Fix version number
[harbour-pedalo.git] / qml / pages / FirstPage.qml
1 import QtQuick 2.0
2 import Sailfish.Silica 1.0
3
4 Page {
5     id: page
6
7     // The effective value will be restricted by ApplicationWindow.allowedOrientations
8     allowedOrientations: Orientation.All
9
10     // To enable PullDownMenu, place our content in a SilicaFlickable
11     SilicaFlickable {
12         anchors.fill: parent
13
14         // PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
15         PullDownMenu {
16             MenuItem {
17                 text: qsTr("Show Page 2")
18                 onClicked: pageStack.push(Qt.resolvedUrl("SecondPage.qml"))
19             }
20         }
21
22         // Tell SilicaFlickable the height of its content.
23         contentHeight: column.height
24
25         // Place our content in a Column.  The PageHeader is always placed at the top
26         // of the page, followed by our content.
27         Column {
28             id: column
29
30             width: page.width
31             spacing: Theme.paddingLarge
32             PageHeader {
33                 title: qsTr("UI Template")
34             }
35             Label {
36                 x: Theme.horizontalPageMargin
37                 text: qsTr("Hello Sailors")
38                 color: Theme.secondaryHighlightColor
39                 font.pixelSize: Theme.fontSizeExtraLarge
40             }
41         }
42     }
43 }