summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveSummary.qml
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-08 11:56:26 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-08 10:29:36 -0800
commitfeab249bf27d8c36c48562076abad8e22e56f52f (patch)
treeecf117c104413a8a278751f611b73c989f63d427 /mobile-widgets/qml/DiveSummary.qml
parenta93c303b8b8a426e5236825c7be9c5a42c597afd (diff)
downloadsubsurface-feab249bf27d8c36c48562076abad8e22e56f52f.tar.gz
mobile/summary: add refresh button
On tablet devices, the summary page stays open and therefore the summary is not refreshed. For now, add a button. Later, this should be connected to signals when dives are edited, added or deleted. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveSummary.qml')
-rw-r--r--mobile-widgets/qml/DiveSummary.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveSummary.qml b/mobile-widgets/qml/DiveSummary.qml
index 07939b48f..7eb8d254a 100644
--- a/mobile-widgets/qml/DiveSummary.qml
+++ b/mobile-widgets/qml/DiveSummary.qml
@@ -88,9 +88,11 @@ Kirigami.ScrollablePage {
Layout.columnSpan: 3
}
- TemplateLabel {
- text: ""
+ TemplateButton {
+ /* Replace by signals from the core in due course. */
+ text: "Refresh"
width: headerColumnWidth
+ onClicked: reload()
}
TemplateComboBox {
id: selectionPrimary