From 7b89fa842e450c3219d6ae9dee983d80babc5b19 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 21 Aug 2018 10:38:12 +0200 Subject: A refresh signal that can be used to fetch data. This will be automatically triggered when the user selects a view, and whenever f5 is pressed. --- framework/qml/View.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/qml') diff --git a/framework/qml/View.qml b/framework/qml/View.qml index 64524999..5df76cb6 100644 --- a/framework/qml/View.qml +++ b/framework/qml/View.qml @@ -64,10 +64,14 @@ FocusScope { property bool __aborted: false + //This signal will be emitted to refresh the views contents. Fetch data in here. + signal refresh() + //This signal will be emitted once all initial properties have been set and the view is ready to load signal setup() StackView.onActivated: { root.setup() + root.refresh() } StackView.onDeactivated: { -- cgit v1.2.3