summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-09-28 20:20:31 +0300
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2015-10-01 15:45:06 +0000
commit3e7d0c6b62d2fd6acd2c8a64b8e007729843e088 (patch)
tree790427797ccc85ddca2b4af5eb6544db53c9a3d8 /src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp
parent86a716072ee6ccf59dba8a474d15558eb1438966 (diff)
Windows: Use the new signsl/slot syntax
Change-Id: I9ff77b2a245e41257521d1bac7474864c90dedaf Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp')
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp
index 78640ee2..05f7091d 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp
@@ -200,8 +200,8 @@ void QBluetoothDeviceDiscoveryAgentPrivate::startDiscoveryForFirstClassicDevice(
if (!classicDiscoveryWatcher) {
classicDiscoveryWatcher = new QFutureWatcher<
WinClassicBluetooth::RemoteDeviceDiscoveryResult>(this);
- QObject::connect(classicDiscoveryWatcher, SIGNAL(finished()),
- this, SLOT(classicDeviceDiscovered()));
+ connect(classicDiscoveryWatcher, &QFutureWatcher<WinClassicBluetooth::RemoteDeviceDiscoveryResult>::finished,
+ this, &QBluetoothDeviceDiscoveryAgentPrivate::classicDeviceDiscovered);
}
const QFuture<WinClassicBluetooth::RemoteDeviceDiscoveryResult> future =
@@ -258,8 +258,8 @@ void QBluetoothDeviceDiscoveryAgentPrivate::startDiscoveryForLowEnergyDevices()
if (!lowEnergyDiscoveryWatcher) {
lowEnergyDiscoveryWatcher = new QFutureWatcher<
WinLowEnergyBluetooth::DeviceDiscoveryResult>(this);
- QObject::connect(lowEnergyDiscoveryWatcher, SIGNAL(finished()),
- this, SLOT(lowEnergyDeviceDiscovered()));
+ connect(lowEnergyDiscoveryWatcher, &QFutureWatcher<WinLowEnergyBluetooth::DeviceDiscoveryResult>::finished,
+ this, &QBluetoothDeviceDiscoveryAgentPrivate::lowEnergyDeviceDiscovered);
}
const QFuture<WinLowEnergyBluetooth::DeviceDiscoveryResult> future =