mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Qt6: use the newer createCentral() API
This will cause us problems when using Qt6 on Android - but I don't see this happening any time soon. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
240b2dc4df
commit
300248f446
1 changed files with 1 additions and 1 deletions
|
@ -561,7 +561,7 @@ dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, device_d
|
||||||
// HACK ALERT! Qt 5.9 needs this for proper Bluez operation
|
// HACK ALERT! Qt 5.9 needs this for proper Bluez operation
|
||||||
qputenv("QT_DEFAULT_CENTRAL_SERVICES", "1");
|
qputenv("QT_DEFAULT_CENTRAL_SERVICES", "1");
|
||||||
|
|
||||||
#if defined(Q_OS_MACOS) || defined(Q_OS_IOS)
|
#if defined(Q_OS_MACOS) || defined(Q_OS_IOS) || QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||||
QBluetoothDeviceInfo remoteDevice = getBtDeviceInfo(QString(devaddr));
|
QBluetoothDeviceInfo remoteDevice = getBtDeviceInfo(QString(devaddr));
|
||||||
QLowEnergyController *controller = QLowEnergyController::createCentral(remoteDevice);
|
QLowEnergyController *controller = QLowEnergyController::createCentral(remoteDevice);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue