diff options
-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 { |