summaryrefslogtreecommitdiff
path: root/examples/location
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-09-17 22:54:56 +0200
committerLiang Qi <liang.qi@qt.io>2016-09-17 22:54:56 +0200
commit5d0481603414a4584dbfe89aaba48a6135b9e2d8 (patch)
treea8868da5003265d55a3ff5f2cc380ca41756f582 /examples/location
parent9cf6d7e77fc7029c35af56d943e4267051845c0a (diff)
parent7cfd70fa2f8fd24053d31122ac0a27eb56915895 (diff)
downloadqtlocation-5d0481603414a4584dbfe89aaba48a6135b9e2d8.tar.gz
Merge remote-tracking branch 'origin/5.6' into 5.7
Change-Id: Ie8986d40efc5a241cb94ba743e343cbb35f66611
Diffstat (limited to 'examples/location')
-rw-r--r--examples/location/mapviewer/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/location/mapviewer/main.cpp b/examples/location/mapviewer/main.cpp
index 8b8991fe..1b526435 100644
--- a/examples/location/mapviewer/main.cpp
+++ b/examples/location/mapviewer/main.cpp
@@ -91,6 +91,8 @@ int main(int argc, char *argv[])
if (parseArgs(args, parameters))
return 0;
+ if (!args.contains(QStringLiteral("osm.useragent")))
+ parameters[QStringLiteral("osm.useragent")] = QStringLiteral("QtLocation Mapviewer example");
QQmlApplicationEngine engine;
engine.addImportPath(QStringLiteral(":/imports"));