2
import Ubuntu.Components 0.1
5
\brief MainView with Tabs element.
6
First Tab has a single Label and
7
second Tab has a single ToolbarAction.
11
// objectName for functional testing purposes (autopilot-qt5)
12
objectName: "appTemplate"
21
// First tab begins here
25
title: i18n.tr("AppTemplate")
27
// Tab content begins here
30
anchors.centerIn: parent
32
text: i18n.tr("Swipe from right to left to change tab.")
38
// Second tab begins here
42
title: i18n.tr("Optional Screen")
44
anchors.margins: units.gu(2)
46
tools: ToolbarActions {
50
iconSource: Qt.resolvedUrl("avatar.png")
51
text: i18n.tr("Tap me!")
54
label.text = i18n.tr("Toolbar tapped")
60
anchors.centerIn: parent
65
text: i18n.tr("Swipe from bottom to up to reveal the toolbar.")