import QtQuick 2.0
import Ubuntu.Components 1.2
import Ubuntu.Components.ListItems 1.0 as ListItem
import "components"
MainView {
// objectName for functional testing purposes (autopilot-qt5)
objectName: "mainView"
// Note! applicationName needs to match the "name" field of the click manifest
applicationName: "com.ubuntu.developer.aaronhoneycutt.ubuntubeginner"
/*
This property enables the application to change orientation
when the device is rotated. The default is false.
*/
//automaticOrientation: true
width: units.gu(50)
height: units.gu(75)
PageStack {
id: pageStack
Component.onCompleted: push(root)
Page {
id: root
title: i18n.tr("Home")
head.actions: [
Action {
iconName: "info"
text: i18n.tr("Info")
onTriggered: pageStack.push(Qt.resolvedUrl("components/About.qml"))
}
]
Column {
anchors.fill: parent
ListItem.Standard {
text: i18n.tr("Tips")
onClicked: pageStack.push(Qt.resolvedUrl("components/Tips.qml"))
progression: true
}
ListItem.Standard {
text: i18n.tr("Contribute")
onClicked: pageStack.push(Qt.resolvedUrl("components/Contribute.qml"))
progression: true
}
ListItem.Standard {
text: i18n.tr("Family")
onClicked: pageStack.push(Qt.resolvedUrl("components/Family.qml"))
progression: true
}
}
}
}
}