diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-02-12 10:47:12 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2020-02-18 17:35:54 +0000 |
commit | 1fb878d8de41a2cfd2e0afe4c939679bbb65fdb2 (patch) | |
tree | cc2cf31d571156d7ab5b7b81f5cded497078384d | |
parent | f813d6af4e41b8b60652265827c0c06deb888f66 (diff) |
Examples: set minimal_map fullscreen on Android devices
If running minimal_map example on Android, the map view
is shown on a small view on top of the screen only, with
all the remaining view as blank, this is not desirable.
Change-Id: I727247428c9a33e0281083abef672379f479c5be
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | examples/location/minimal_map/main.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/location/minimal_map/main.qml b/examples/location/minimal_map/main.qml index 40e1bb46..285eb31e 100644 --- a/examples/location/minimal_map/main.qml +++ b/examples/location/minimal_map/main.qml @@ -49,13 +49,13 @@ ****************************************************************************/ import QtQuick 2.0 -import QtQuick.Window 2.0 +import QtQuick.Window 2.14 import QtLocation 5.6 import QtPositioning 5.6 Window { - width: 512 - height: 512 + width: Qt.platform.os == "android" ? Screen.width : 512 + height: Qt.platform.os == "android" ? Screen.height : 512 visible: true Plugin { |