import QtQuick 2.0 import Sailfish.Silica 1.0 import "../../js/functions.js" as ManifoldJS Page { id: page // The effective value will be restricted by ApplicationWindow.allowedOrientations allowedOrientations: Orientation.All SilicaListView { id: taskList model: ListModel { id: model} anchors.fill: parent header: PageHeader { title: "Feed"} spacing: Theme.paddingSmall PullDownMenu { MenuItem { text: qsTr("Refresh") onClicked: ManifoldJS.refreshFeedPage(settings.phab_url, settings.api_token); } } delegate: ListItem { id: myDelegate menu: contextMenu Label { id: label text: localtime font.pixelSize: Theme.fontSizeSmall } Label { anchors.top: label.bottom text: ftext font.pixelSize: Theme.fontSizeSmall wrapMode: Text.WordWrap } Component { id: contextMenu ContextMenu { MenuItem { text: "Open" onClicked: Qt.openUrlExternally(settings.phab_url + "/feed/" + chron) } } } } Component.onCompleted: { ManifoldJS.refreshFeedPage(settings.phab_url, settings.api_token); } VerticalScrollDecorator {} } }