Small improvements to the AboutPage layout
authorLuciano Montanaro <mikelima@cirulla.net>
Sun, 10 Nov 2013 13:54:35 +0000 (14:54 +0100)
committerLuciano Montanaro <mikelima@cirulla.net>
Sun, 10 Nov 2013 13:54:35 +0000 (14:54 +0100)
application/resources/harmattan/qml/AboutPage.qml

index e7842c6..9ac022d 100644 (file)
@@ -1,5 +1,5 @@
 import QtQuick 1.1
-import com.nokia.meego 1.0
+import com.nokia.meego 1.1
 import "uiconstants.js" as UiConstants
 
 Page {
@@ -20,30 +20,38 @@ Page {
             qsTr("About Quando Parte")
         ]
     }
-    Label {
+    Flickable {
         anchors {
             top: header.bottom;
             left: parent.left;
             right: parent.right;
             margins: UiConstants.DefaultMargin
         }
-        wrapMode: Text.WordWrap
-        textFormat: Text.RichText
-        text: qsTr("<h2><a href='http://quandoparte.garage.maemo.org'>" +
-                   "Quando Parte" + "</a></h2>" +"<p style='font-size:small;'>version ") +
-              settings.versionString +
-              qsTr("</p>" +
-                   "<p>Copyright (c) 2010, 2011, 2012, 2013</p>" +
-                   "<p>Luciano Montanaro " +
-                   "(<a href='mailto:mikelima@cirulla.net'>mikelima@cirulla.net</a>)</p>" +
-                   "<p>Licensed under the GNU Public License v2 or above</p>" +
-                   "<p/><p>Station geolocation data from " +
-                   "<a href='http://www.openstreetmap.org'>OpenStreetMap</a></p>" +
-                   "<p>Realtime train data from " +
-                   "<a href='http://mobile.viaggiatreno.it'>Viaggiatreno</a></p>");
-        onLinkActivated: Qt.openUrlExternally(link)
-    }
-    LabelStyle {
-        id: labelStyle
+        Label {
+            anchors {
+                top: parent.top;
+                left: parent.left;
+                right: parent.right;
+                margins: UiConstants.DefaultMargin
+            }
+            wrapMode: Text.WordWrap
+            textFormat: Text.RichText
+            text: qsTr("<h2><a href='http://quandoparte.garage.maemo.org'>" +
+                       "Quando Parte" + "</a></h2>" +"<p style='font-size:small;'>version ") +
+                  settings.versionString +
+                  qsTr("</p>" +
+                       "<p>Copyright (c) 2010, 2011, 2012, 2013</p>" +
+                       "<p>Luciano Montanaro " +
+                       "(<a href='mailto:mikelima@cirulla.net'>mikelima@cirulla.net</a>)</p>" +
+                       "<p>Licensed under the GNU Public License v2 or above</p>" +
+                       "<p/><p>Station geolocation data from " +
+                       "<a href='http://www.openstreetmap.org'>OpenStreetMap</a></p>" +
+                       "<p>Realtime train data from " +
+                       "<a href='http://mobile.viaggiatreno.it'>Viaggiatreno</a></p>");
+            onLinkActivated: Qt.openUrlExternally(link)
+        }
+        LabelStyle {
+            id: labelStyle
+        }
     }
  }