From bf239e7c428c1407147b4e380655c08560e5a56d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 26 Dec 2015 13:22:50 -0800 Subject: QML-UI: add hacky, useless way to show the GPS location of a dive This is of course stupid and NOT what we want to do, but one could argue it's better than nothing (well, not sure, whatever). If we have a GPS location associated with a dive and you tap on the location name when showing the dive details, it opens a static image of a satellite map with a marker for the dive site. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsView.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'qt-mobile/qml/DiveDetailsView.qml') diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml index ce7f2485e..f2eb66407 100644 --- a/qt-mobile/qml/DiveDetailsView.qml +++ b/qt-mobile/qml/DiveDetailsView.qml @@ -1,4 +1,7 @@ import QtQuick 2.3 +/* +import QtWebView 1.0 +*/ import QtQuick.Controls 1.2 import QtQuick.Controls.Styles 1.2 import QtQuick.Dialogs 1.2 @@ -29,7 +32,26 @@ GridLayout { text: location Layout.columnSpan: 4 wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere + MouseArea { + anchors.fill: parent + onClicked: { + if (gps !== "") + manager.showMap(gps) + } + } + } + /* + Rectangle { + id: mapView + width: parent.width + height: parents.width * 0.7 + WebView { + id: webView + anchors.fill: parent + url: "http://www.google.com" + } } +*/ MobileComponents.Label { Layout.alignment: Qt.AlignRight id: dateLabel -- cgit v1.2.3-70-g09d2