From ba35e1e65f06b904cda5e14e88d2eb9f123af39b Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Sun, 10 Nov 2013 14:58:52 +0100 Subject: [PATCH] Small fixes for sailfish os --- .../sailfish/applications/quandoparte.desktop | 8 ++++++++ .../resources/sailfish/qml/cover/CoverPage.qml | 18 ++---------------- .../resources/sailfish/qml/pages/StationPage.qml | 14 +++++--------- 3 files changed, 15 insertions(+), 25 deletions(-) create mode 100755 application/resources/sailfish/applications/quandoparte.desktop diff --git a/application/resources/sailfish/applications/quandoparte.desktop b/application/resources/sailfish/applications/quandoparte.desktop new file mode 100755 index 0000000..250e043 --- /dev/null +++ b/application/resources/sailfish/applications/quandoparte.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Terminal=false +Name=Quando Parte +Exec=/usr/bin/invoker --type=silica-qt5 -s /usr/bin/quandoparte +Icon=/usr/share/icons/hicolor/meegotouch/apps/quandoparte.png diff --git a/application/resources/sailfish/qml/cover/CoverPage.qml b/application/resources/sailfish/qml/cover/CoverPage.qml index 17ee438..181a54d 100644 --- a/application/resources/sailfish/qml/cover/CoverPage.qml +++ b/application/resources/sailfish/qml/cover/CoverPage.qml @@ -2,25 +2,11 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 CoverBackground { - Label { - id: label + CoverPlaceholder { anchors.centerIn: parent text: qsTr("Quando Parte") + icon.source: "/usr/share/icons/hicolor/meegotouch/apps/quandoparte.png" } - -/* - CoverActionList { - id: coverAction - - CoverAction { - iconSource: "image://theme/icon-cover-next" - } - - CoverAction { - iconSource: "image://theme/icon-cover-pause" - } - } -*/ } diff --git a/application/resources/sailfish/qml/pages/StationPage.qml b/application/resources/sailfish/qml/pages/StationPage.qml index b1ea927..9d240d9 100644 --- a/application/resources/sailfish/qml/pages/StationPage.qml +++ b/application/resources/sailfish/qml/pages/StationPage.qml @@ -57,18 +57,14 @@ Page { } Item { id: errorDisplay - anchors.centerIn: parent + anchors.fill: parent Column { - anchors.centerIn: parent + anchors.fill: parent spacing: Theme.paddingLarge Label { - text: qsTr("Error!") - width: parent.width - font.pixelSize: Theme.fontSizeHuge - horizontalAlignment: Text.AlignHCenter - } - Label { - text: schedule.error + textFormat: Text.StyledText + wrapMode: Text.WordWrap + text: "

" + qsTr("Error!") + "

" + schedule.error + "

" width: parent.width font.pixelSize: Theme.fontSizeHuge horizontalAlignment: Text.AlignHCenter -- 1.7.9.5