~mhall119/ureadit/4.0

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
import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Components.ListItems 1.0 as ListItems
import "../manifest.js" as Manifest

Page {
    id: aboutPage
    title: i18n.tr("About")

    Flickable {
        anchors.fill: parent
        contentHeight: detailsList.height

        Column {
            id: detailsList
            width: parent.width

            UbuntuShape {
                anchors.horizontalCenter: parent.horizontalCenter
                height: units.gu(25)
                width: units.gu(25)
                radius: "medium"

                image: Image {
                    source: Qt.resolvedUrl("../images/uReadit.png")
                }
            }

            ListItems.SingleValue {
                text: i18n.tr("Name")
                value: Manifest.appData.title
            }
            ListItems.SingleValue {
                text: i18n.tr("Author")
                value: Manifest.appData.maintainer
            }
            ListItems.SingleValue {
                text: i18n.tr("Version")
                value: Manifest.appData.version
            }
            ListItems.SingleValue {
                text: i18n.tr("Released")
                value: Manifest.releaseDate
            }
        }
    }
}