summaryrefslogtreecommitdiff
path: root/examples/location/mapviewer/main.cpp
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-03-10 15:59:52 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-03-13 10:31:23 +0000
commitb0480d83282d76c6740ed71323155adbf97de9fa (patch)
tree69a4d6e257b0029431e8806d5f41a6c1aca0fa54 /examples/location/mapviewer/main.cpp
parentdca175454aefdd019952d941c6369c314e8c3b11 (diff)
downloadqtlocation-b0480d83282d76c6740ed71323155adbf97de9fa.tar.gz
Polish MapViewer example
This patch does some improvements to the MapViewer example. Namely: - sliders, which have been problematic in many ways, are now from QtQuickControls 2, and this solves a couple of glitches. - changing map provider now retains tilt, bearing and field of view, if possible. - High DPI scaling is enabled by default in main() - the slider panel is open at start Change-Id: I1cc380e3d05b89aa547139d912c142e4f0d266c9 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/location/mapviewer/main.cpp')
-rw-r--r--examples/location/mapviewer/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/location/mapviewer/main.cpp b/examples/location/mapviewer/main.cpp
index 3eedd8dd..c44e3d9e 100644
--- a/examples/location/mapviewer/main.cpp
+++ b/examples/location/mapviewer/main.cpp
@@ -88,6 +88,7 @@ int main(int argc, char *argv[])
for (const QByteArray &p : additionalLibraryPaths.split(':'))
QCoreApplication::addLibraryPath(QString(p));
+ QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication application(argc, argv);
QVariantMap parameters;