mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f677d482e9
commit
69c10808af
5 changed files with 11 additions and 15 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue