Commit c264e2de authored by Nicolas Fella's avatar Nicolas Fella

Format

parent 4ad0c7cb
......@@ -121,9 +121,7 @@ void Controller::showOnMap(KPublicTransport::Location location)
url.setScheme(QStringLiteral("https"));
url.setHost(QStringLiteral("www.openstreetmap.org"));
url.setPath(QStringLiteral("/"));
const QString fragment = QLatin1String("map=") + QString::number(17)
+ QLatin1Char('/') + QString::number(location.latitude())
+ QLatin1Char('/') + QString::number(location.longitude());
const QString fragment = QLatin1String("map=") + QString::number(17) + QLatin1Char('/') + QString::number(location.latitude()) + QLatin1Char('/') + QString::number(location.longitude());
url.setFragment(fragment);
QDesktopServices::openUrl(url);
}
......@@ -19,11 +19,11 @@
*/
#include "androidutils.h"
#include "controller.h"
#include "formatter.h"
#include "ktripsettings.h"
#include "localizer.h"
#include "locationcachemodel.h"
#include "controller.h"
#include <QQmlApplicationEngine>
#include <QQmlContext>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment