summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-06-04 10:28:30 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-04 13:42:15 +0200
commitb37dcff2f43e573771d3da89a35aa8e135f1c795 (patch)
treeed2de5b052db53a0bd0cc946091182101bc9d9f3 /examples/bluetooth
parent7abb1f0464e4ba6ffba07f8e9ec71aa4d14b85ca (diff)
QBluetoothDeviceInfo::coreConfiguration() should return the QFlag
Function name was slightly adjusted to reflect the fact that it's a flag. Change-Id: I9c1a2fe64b93c7ae7bd826d856f8b87f985d7473 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'examples/bluetooth')
-rw-r--r--examples/bluetooth/heartlistener/heartrate.cpp2
-rw-r--r--examples/bluetooth/lowenergyscanner/device.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/bluetooth/heartlistener/heartrate.cpp b/examples/bluetooth/heartlistener/heartrate.cpp
index 7d135e5b..27461978 100644
--- a/examples/bluetooth/heartlistener/heartrate.cpp
+++ b/examples/bluetooth/heartlistener/heartrate.cpp
@@ -87,7 +87,7 @@ void HeartRate::deviceSearch()
void HeartRate::addDevice(const QBluetoothDeviceInfo &device)
{
- if (device.coreConfiguration() & QBluetoothDeviceInfo::LowEnergyCoreConfiguration) {
+ if (device.coreConfigurations() & QBluetoothDeviceInfo::LowEnergyCoreConfiguration) {
QBluetoothLocalDevice localDevice;
QBluetoothLocalDevice::Pairing pairingStatus = localDevice.pairingStatus(device.address());
if (pairingStatus == QBluetoothLocalDevice::Paired || pairingStatus == QBluetoothLocalDevice::AuthorizedPaired )
diff --git a/examples/bluetooth/lowenergyscanner/device.cpp b/examples/bluetooth/lowenergyscanner/device.cpp
index d137fd40..8f899354 100644
--- a/examples/bluetooth/lowenergyscanner/device.cpp
+++ b/examples/bluetooth/lowenergyscanner/device.cpp
@@ -95,7 +95,7 @@ void Device::startDeviceDiscovery()
void Device::addDevice(const QBluetoothDeviceInfo &info)
{
- if (info.coreConfiguration() & QBluetoothDeviceInfo::LowEnergyCoreConfiguration) {
+ if (info.coreConfigurations() & QBluetoothDeviceInfo::LowEnergyCoreConfiguration) {
DeviceInfo *d = new DeviceInfo(info);
devices.append(d);
setUpdate("Last device added: " + d->getName());