From: Luciano Montanaro Date: Thu, 2 Jan 2014 21:39:02 +0000 (+0100) Subject: Added a cover action to update station schedule X-Git-Tag: 0.9.0~2 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ffeature-coverpage-reload-action;p=quandoparte Added a cover action to update station schedule --- diff --git a/application/resources/sailfish/qml/cover/CoverPage.qml b/application/resources/sailfish/qml/cover/CoverPage.qml index ed5c7af..6b8583b 100644 --- a/application/resources/sailfish/qml/cover/CoverPage.qml +++ b/application/resources/sailfish/qml/cover/CoverPage.qml @@ -8,7 +8,7 @@ CoverBackground { anchors.fill: parent text: qsTr("Quando Parte") icon.source: "/usr/share/icons/hicolor/86x86/apps/quandoparte.png" - visible: stationScheduleView.count === 0 + visible: stationScheduleView.count === 0 } SilicaListView { id: stationScheduleView @@ -34,4 +34,12 @@ CoverBackground { offset: 0.5 sourceItem: stationScheduleView } + CoverActionList { + enabled: schedule.name.length !== 0 + iconBackground: true + CoverAction { + iconSource: "image://theme/icon-cover-refresh" + onTriggered: schedule.fetch(schedule.name, schedule.code) + } + } }