Fix error reporting in the station page
authorLuciano Montanaro <mikelima@cirulla.net>
Wed, 25 Sep 2013 22:34:46 +0000 (00:34 +0200)
committerLuciano Montanaro <mikelima@cirulla.net>
Wed, 25 Sep 2013 22:34:46 +0000 (00:34 +0200)
The error display is still pretty basic, but it is a start

application/resources/harmattan/qml/StationPage.qml

index 8ba29e4..14acf25 100644 (file)
@@ -90,14 +90,16 @@ Page {
                 anchors.centerIn: parent
                 spacing: UiConstants.DefaultMargin
                 Text {
-                    text: qsTr("Error")
+                    text: qsTr("Error!")
+                    width: parent.width
                     font.pixelSize: UiConstants.HeaderFontPixelSize
                     font.bold: UiConstants.HeaderFontBoldness
                     horizontalAlignment: Text.AlignHCenter
                 }
                 Text {
                     text: schedule.error
-                    font.pixelSize: UiConstants.DefaultFontBoldness
+                    width: parent.width
+                    font.pixelSize: UiConstants.HeaderFontPixelSize
                     font.bold: UiConstants.DefaultFontBoldness
                     horizontalAlignment: Text.AlignHCenter
                 }
@@ -140,11 +142,11 @@ Page {
                 when: schedule.error
                 PropertyChanges {
                     target: stationScheduleView
-                    visible: true
+                    visible: false
                 }
                 PropertyChanges {
                     target: errorDisplay
-                    visible: false
+                    visible: true
                 }
                 PropertyChanges {
                     target: busyIndicator