diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-02 07:09:40 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-02 12:46:59 -0500 |
commit | 69c10808af442140829975ee1cf893160e3be10d (patch) | |
tree | 920867c4eb230888c5b6193571690719da227f97 /qt-mobile/qmlmanager.cpp | |
parent | f677d482e9db6f4d566eac40909bb7c8f01fafd7 (diff) | |
download | subsurface-69c10808af442140829975ee1cf893160e3be10d.tar.gz |
QML UI: don't go through manager object to show map
We can open URLs in the browser directly from QML.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index a3506ce4d..96ab5421c 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -959,16 +959,6 @@ void QMLManager::setCredentialStatus(const credentialStatus_t value) } } -void QMLManager::showMap(const QString& location) -{ - if (!location.isEmpty()) { - QString link = QString("https://www.google.com/maps/place/%1/@%2,5000m/data=!3m1!1e3!4m2!3m1!1s0x0:0x0") - .arg(location) - .arg(location); - QDesktopServices::openUrl(link); - } -} - // where in the QML dive list is that dive? int QMLManager::getIndex(const QString &diveId) { |