Use #if defined() instead of #if
qtcreator (4.3.0) got confused whether BT_SUPPORT was defined. Using work as expected. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QScreen>
|
||||
#include <QElapsedTimer>
|
||||
#if BT_SUPPORT
|
||||
#if defined(BT_SUPPORT)
|
||||
#include <QBluetoothLocalDevice>
|
||||
#include <QBluetoothDeviceDiscoveryAgent>
|
||||
#include <QBluetoothUuid>
|
||||
@@ -122,7 +122,7 @@ public:
|
||||
Q_INVOKABLE int getVendorIndex();
|
||||
Q_INVOKABLE int getProductIndex();
|
||||
Q_INVOKABLE QString getBtAddress();
|
||||
#if BT_SUPPORT
|
||||
#if defined(BT_SUPPORT)
|
||||
void btDeviceDiscovered(const QBluetoothDeviceInfo &device);
|
||||
#endif
|
||||
|
||||
@@ -207,7 +207,7 @@ private:
|
||||
bool checkDepth(DiveObjectHelper *myDive, struct dive *d, QString depth);
|
||||
bool currentGitLocalOnly;
|
||||
bool m_showPin;
|
||||
#if BT_SUPPORT
|
||||
#if defined(BT_SUPPORT)
|
||||
QBluetoothLocalDevice localBtDevice;
|
||||
QBluetoothDeviceDiscoveryAgent *discoveryAgent;
|
||||
struct btVendorProduct {
|
||||
|
||||
Reference in New Issue
Block a user