diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2017-03-15 13:19:46 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2017-04-05 08:41:58 +0000 |
commit | 6520f8af711a9b61b194d163bb8f1db53b514ef6 (patch) | |
tree | 738fb51c63408e936b7b89a6efaef063fc4c8211 /examples/bluetooth/heartrate-game/devicefinder.cpp | |
parent | 39ed984d372f66299eba86be4e80e6ebffb96926 (diff) |
Permit BlueZ platforms to set the address type in heartrate-game
BlueZ is the only platform that requires to set the BTLE address type.
The patch introduces a new UI button which allows the user to toggle
the address type.
The UI element is disabled on all platforms but Linux/BlueZ systems.
The number of devices returned in simulator mode is reduced to
four devices. This was done purely for esthetical reasons as the
additional address type button takes screen real estate away and
five simulator devices require more screen real estate than the
remaining space for device list. This avoid the need for scrolling.
Change-Id: I14cf26b3c821db7768b9d018c2d09441cd97679a
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples/bluetooth/heartrate-game/devicefinder.cpp')
-rw-r--r-- | examples/bluetooth/heartrate-game/devicefinder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/heartrate-game/devicefinder.cpp b/examples/bluetooth/heartrate-game/devicefinder.cpp index 71c4dcee..a56cfd6d 100644 --- a/examples/bluetooth/heartrate-game/devicefinder.cpp +++ b/examples/bluetooth/heartrate-game/devicefinder.cpp @@ -113,7 +113,7 @@ void DeviceFinder::scanFinished() { #ifdef SIMULATOR // Only for testing - for (int i = 0; i < 5; i++) + for (int i = 0; i < 4; i++) m_devices.append(new DeviceInfo(QBluetoothDeviceInfo())); #endif |