From c664e448735a0b78ca23a167202f1943fa783338 Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Fri, 15 Jan 2016 10:07:07 +0100 Subject: Assume presence of local bluetooth adapter on WinPhone As we cannot obtain any meaningful information (like bluetooth address) or perform operations like pairing using the WinRT API QBluetoothLocalDevice is not implemented for Windows phone. As we assume the presence of a valid bluetooth adapter though isValidLocalAdapter has to return true to enable the functionality. Change-Id: I84d38852d2fa632e0e7cf72bbdd57f1b7a9707fd Reviewed-by: Alex Blasche --- src/bluetooth/qlowenergycontroller.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bluetooth') diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp index eeff4ab0..f70e03c6 100644 --- a/src/bluetooth/qlowenergycontroller.cpp +++ b/src/bluetooth/qlowenergycontroller.cpp @@ -310,6 +310,9 @@ void QLowEnergyControllerPrivate::setError( bool QLowEnergyControllerPrivate::isValidLocalAdapter() { +#ifdef QT_WINRT_BLUETOOTH + return true; +#endif if (localAdapter.isNull()) return false; -- cgit v1.2.3