diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-09-15 01:20:02 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-09-15 08:39:28 +0000 |
commit | eb3812884d63ffc014f4ac76214e65a6497ae827 (patch) | |
tree | 7d88c229754478d2256cfabbe15e6e0d0ba9ee2a | |
parent | e31783f9917eff6343edcd0b47298fd3e8a54edb (diff) | |
download | qtlocation-eb3812884d63ffc014f4ac76214e65a6497ae827.tar.gz |
Fix mapviewer example build with -no-feature-library
Change-Id: I4d2d430a1315afb1b5cbbaf254b08691579d28f2
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r-- | examples/location/mapviewer/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/location/mapviewer/main.cpp b/examples/location/mapviewer/main.cpp index c44e3d9e..af844f13 100644 --- a/examples/location/mapviewer/main.cpp +++ b/examples/location/mapviewer/main.cpp @@ -84,10 +84,11 @@ static bool parseArgs(QStringList& args, QVariantMap& parameters) int main(int argc, char *argv[]) { +#if QT_CONFIG(library) const QByteArray additionalLibraryPaths = qgetenv("QTLOCATION_EXTRA_LIBRARY_PATH"); for (const QByteArray &p : additionalLibraryPaths.split(':')) QCoreApplication::addLibraryPath(QString(p)); - +#endif QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication application(argc, argv); |