import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Components.ListItems 1.3 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: "ubuntubeginner.aaronhoneycutt"
width: units.gu(50)
height: units.gu(75)
PageStack {
id: pageStack
Component.onCompleted: push(page0)
Page {
id: page0
visible: false
header: PageHeader {
title: i18n.tr("Home")
StyleHints {
foregroundColor: "white"
backgroundColor: UbuntuColors.orange
contentHeight: units.gu(6)
}
leadingActionBar.actions: []
trailingActionBar.actions: [
Action {
iconName: "info"
text: i18n.tr("Info")
onTriggered: pageStack.push(Qt.resolvedUrl("components/About.qml"))
}
]
}
Column {
anchors {
fill: parent
top: page0.bottom
topMargin: units.gu(6)
}
ListItem.Standard {
text: i18n.tr("News")
onClicked: pageStack.push(Qt.resolvedUrl("components/News.qml"))
progression: true
}
ListItem.Standard {
text: i18n.tr("Support")
onClicked: pageStack.push(Qt.resolvedUrl("components/Support.qml"))
progression: true
}
ListItem.Standard {
text: i18n.tr("Social")
onClicked: pageStack.push(Qt.resolvedUrl("components/Social.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
}
}
}
}
}