Small improvements to the AboutPage layout
[quandoparte] / application / resources / harmattan / qml / AboutPage.qml
1 import QtQuick 1.1
2 import com.nokia.meego 1.1
3 import "uiconstants.js" as UiConstants
4
5 Page {
6     anchors.fill: parent
7
8     tools: ToolBarLayout {
9         id: toolBar
10         ToolIcon {
11             iconId: "icon-m-toolbar-back" + (theme.inverted ? "-white": "")
12             onClicked: pageStack.pop()
13         }
14     }
15     PageHeader {
16         id: header
17         anchors.top: parent.top
18         selectedIndex: settings.showArrivalsPreferred ? 1 : 0
19         options: [
20             qsTr("About Quando Parte")
21         ]
22     }
23     Flickable {
24         anchors {
25             top: header.bottom;
26             left: parent.left;
27             right: parent.right;
28             margins: UiConstants.DefaultMargin
29         }
30         Label {
31             anchors {
32                 top: parent.top;
33                 left: parent.left;
34                 right: parent.right;
35                 margins: UiConstants.DefaultMargin
36             }
37             wrapMode: Text.WordWrap
38             textFormat: Text.RichText
39             text: qsTr("<h2><a href='http://quandoparte.garage.maemo.org'>" +
40                        "Quando Parte" + "</a></h2>" +"<p style='font-size:small;'>version ") +
41                   settings.versionString +
42                   qsTr("</p>" +
43                        "<p>Copyright (c) 2010, 2011, 2012, 2013</p>" +
44                        "<p>Luciano Montanaro " +
45                        "(<a href='mailto:mikelima@cirulla.net'>mikelima@cirulla.net</a>)</p>" +
46                        "<p>Licensed under the GNU Public License v2 or above</p>" +
47                        "<p/><p>Station geolocation data from " +
48                        "<a href='http://www.openstreetmap.org'>OpenStreetMap</a></p>" +
49                        "<p>Realtime train data from " +
50                        "<a href='http://mobile.viaggiatreno.it'>Viaggiatreno</a></p>");
51             onLinkActivated: Qt.openUrlExternally(link)
52         }
53         LabelStyle {
54             id: labelStyle
55         }
56     }
57  }