Ubuntu Pastebin

Paste from Main.qml at Sat, 23 Apr 2016 17:42:43 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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 {
            header: PageHeader {
                id: page0
                title: i18n.tr("Home")
                visible: false
                StyleHints {
                    foregroundColor: "white"
                    backgroundColor: UbuntuColors.orange
                    contentHeight: units.gu(6)
                }
                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("Support.qml"))
                    progression: true
                }
                ListItem.Standard {
                    text: i18n.tr("Social")
                    onClicked: pageStack.push(Qt.resolvedUrl("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("Family.qml"))
                    progression: true
                }
            }
        }
    }
}
Download as text