diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-03-02 15:17:41 +0100 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2021-03-03 11:15:38 +0100 |
commit | 2988f97b5c3303fb890ae1b2e7fc5a2ee87a82eb (patch) | |
tree | 3123f50e266e5cfd81bf90b72dab6feadb51c227 /examples/bluetooth/pingpong/assets/Board.qml | |
parent | 3f97ef4a14a135b415c9bc7f7ac54628860e2660 (diff) |
Pingpong example: enlarge MouseArea for paddles
On some devices, it was hard to grab the paddles. This patch
enlarges the mousearea to easier grab the paddles.
Change-Id: I10d15b7605521d6a8d7775e5b6b96bce61e44de4
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/pingpong/assets/Board.qml')
-rw-r--r-- | examples/bluetooth/pingpong/assets/Board.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/bluetooth/pingpong/assets/Board.qml b/examples/bluetooth/pingpong/assets/Board.qml index 5e3ea6f4..4409d2e6 100644 --- a/examples/bluetooth/pingpong/assets/Board.qml +++ b/examples/bluetooth/pingpong/assets/Board.qml @@ -76,7 +76,9 @@ Rectangle { MouseArea { id: leftMouse - anchors.fill: parent + width: (board.width/2) + height: parent.height + anchors.horizontalCenter: parent.horizontalCenter acceptedButtons: Qt.LeftButton drag.target: leftblock drag.axis: Drag.YAxis @@ -97,7 +99,9 @@ Rectangle { MouseArea { id: rightMouse - anchors.fill: parent + width: (board.width/2) + height: parent.height + anchors.horizontalCenter: parent.horizontalCenter acceptedButtons: Qt.LeftButton drag.target: rightblock drag.axis: Drag.YAxis |