diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-19 05:09:17 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-19 05:14:44 -0700 |
commit | a807a5e8cd5473c8bacf5b6299755899f613a1dd (patch) | |
tree | 27c10b686aa1c19c3bb583d9d00fc5e09d5da894 /mobile-widgets | |
parent | c6dbbe1aacf4dc3c6b18b318428113a3d0050625 (diff) | |
download | subsurface-a807a5e8cd5473c8bacf5b6299755899f613a1dd.tar.gz |
QML UI: show dive site on map with left action on dive details page
The icon isn't great, though.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 2de542b6e..5a320f055 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -42,6 +42,7 @@ Kirigami.Page { target: diveDetailsPage; actions { right: deleteAction + left: diveDetailsListView.currentItem.modelData.dive.gps !== "" ? mapAction : null } } PropertyChanges { target: detailsEditScroll; opened: false } @@ -73,6 +74,14 @@ Kirigami.Page { } } + property QtObject mapAction: Action { + text: "Show on map" + iconName: "gps" + onTriggered: { + showMap(diveDetailsListView.currentItem.modelData.dive.gps) + } + } + actions.main: Action { iconName: state !== "view" ? "document-save" : "document-edit" onTriggered: { |