diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/location/mapviewer/main.cpp | 2 |
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")); |