diff options
author | Oliver Wolff <oliver.wolff@theqtcompany.com> | 2016-01-15 10:07:07 +0100 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2016-05-26 05:37:26 +0000 |
commit | c664e448735a0b78ca23a167202f1943fa783338 (patch) | |
tree | d17ef10efe807301ddbc2eaa34fa74ebb741c5d6 /src/bluetooth/qlowenergycontroller.cpp | |
parent | 9d20d6093e4b037c1038ebb569494065dfd22d7f (diff) |
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 <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycontroller.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |