diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-02-22 12:05:16 +0100 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2021-02-22 17:59:54 +0100 |
commit | df07116930e6a25a8a25f3b3e3226a102bec01f6 (patch) | |
tree | 0b8f13d140ca08e985d75fd3658e6a3c85fdd0bf /examples/bluetooth/heartrate-game | |
parent | 53b7a6441cd310f461aee2c11f87446acae7027a (diff) |
Fix error in heartrate-game example
This patch fixes the error
qml/Connect.qml:103: TypeError: Cannot read property 'width' of null
Change-Id: I6592d603eee21684460d133df5f37fbcc9bc4fc8
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/heartrate-game')
-rw-r--r-- | examples/bluetooth/heartrate-game/qml/Connect.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/heartrate-game/qml/Connect.qml b/examples/bluetooth/heartrate-game/qml/Connect.qml index 519fe302..d19f49f9 100644 --- a/examples/bluetooth/heartrate-game/qml/Connect.qml +++ b/examples/bluetooth/heartrate-game/qml/Connect.qml @@ -100,7 +100,7 @@ GamePage { delegate: Rectangle { id: box height:GameSettings.fieldHeight * 1.2 - width: parent.width + width: devices.width color: index % 2 === 0 ? GameSettings.delegate1Color : GameSettings.delegate2Color MouseArea { |