diff options
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 9a75fca9e..671fdf7b4 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -89,7 +89,7 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), m_credentialStatus(UNKNOWN), alreadySaving(false) { -#if BT_SUPPORT +#if defined(BT_SUPPORT) if (localBtDevice.isValid()) { localBtDevice.powerOn(); QString localDeviceName = "localDevice " + localBtDevice.name() + " is valid, starting discovery"; @@ -203,7 +203,7 @@ void QMLManager::mergeLocalRepo() process_dives(true, false); } -#if BT_SUPPORT +#if defined(BT_SUPPORT) extern void addBtUuid(QBluetoothUuid uuid); @@ -237,7 +237,7 @@ void QMLManager::btDeviceDiscovered(const QBluetoothDeviceInfo &device) int QMLManager::getVendorIndex() { -#if BT_SUPPORT +#if defined(BT_SUPPORT) if (!btDCs.isEmpty()) { qDebug() << "getVendorIdx" << btDCs.first().vendorIdx; return btDCs.first().vendorIdx; @@ -248,7 +248,7 @@ int QMLManager::getVendorIndex() int QMLManager::getProductIndex() { -#if BT_SUPPORT +#if defined(BT_SUPPORT) if (!btDCs.isEmpty()) { qDebug() << "getProductIdx" << btDCs.first().productIdx; return btDCs.first().productIdx; |