diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-03-02 15:19:09 +0100 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2021-03-03 11:15:42 +0100 |
commit | dd6c8227636747b4568cd67ec7aed06d0a1a6216 (patch) | |
tree | fa9fa7bd55abc248cd11c4e7f09f0af0452218df | |
parent | 2988f97b5c3303fb890ae1b2e7fc5a2ee87a82eb (diff) |
Pingpong example: User 600x600 window by default, fullscreen on mobile
With this patch, the pingpong example no longer forces the
use of a 600x300 window on mobile devices, which led to a suboptimal
user experience.
Change-Id: I2365542bc8d5f99d015499f9b7e8c14ec5a93237
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | examples/bluetooth/pingpong/assets/Menu.qml | 3 | ||||
-rw-r--r-- | examples/bluetooth/pingpong/assets/main.qml | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/bluetooth/pingpong/assets/Menu.qml b/examples/bluetooth/pingpong/assets/Menu.qml index 019718cf..60a9a164 100644 --- a/examples/bluetooth/pingpong/assets/Menu.qml +++ b/examples/bluetooth/pingpong/assets/Menu.qml @@ -51,8 +51,7 @@ import QtQuick 2.0 Rectangle { - width: 600 - height: 300 + anchors.fill: parent Rectangle { diff --git a/examples/bluetooth/pingpong/assets/main.qml b/examples/bluetooth/pingpong/assets/main.qml index 10e477df..1c7ae769 100644 --- a/examples/bluetooth/pingpong/assets/main.qml +++ b/examples/bluetooth/pingpong/assets/main.qml @@ -48,13 +48,14 @@ ** ****************************************************************************/ -import QtQuick 2.0 +import QtQuick 2.1 import QtQuick.Window 2.1 Window { id: menulist width: 600 - height: 300 + height: 600 + visibility: (Qt.platform.os === "android" || Qt.platform.os === "ios") ? Window.FullScreen : Window.Windowed visible: true Dialog { |