Ubuntu Pastebin

Paste from Home at Wed, 13 Apr 2016 01:33:48 +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
import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Components.ListItems 1.3 as ListItem

Page {
    header: PageHeader {
        id: pageHeader
        title: i18n.tr("Home")
        trailingActionBar.actions: [
            Action {
                iconName: "info"
                text: i18n.tr("Info")
                onTriggered: pageStack.push(Qt.resolvedUrl("components/About.qml"))
            }
        ]
    }
    Column {
        anchors {
            fill: parent
            top: pageHeader.bottom
            topMargin: units.gu(6)
        }

        ListItem.Standard {
            text: i18n.tr("News")
            onClicked: pageStack.push(Qt.resolvedUrl("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("Contribute.qml"))
            progression: true
        }
        ListItem.Standard {
            text: i18n.tr("Family")
            onClicked: pageStack.push(Qt.resolvedUrl("Family.qml"))
            progression: true
        }
    }
}
Download as text