summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-05-30 12:54:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-01 07:28:18 -0700
commitf5adbe566235a0b9b7ea0ab978d89aebef8fc8ec (patch)
tree0757b433f71f11763f84c3cf5d18cd8e19643679 /mobile-widgets/qmlmanager.h
parent02d3289bbf8105c1caea96b253db71b141d52246 (diff)
downloadsubsurface-f5adbe566235a0b9b7ea0ab978d89aebef8fc8ec.tar.gz
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>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 7e1c3b78b..e21b93d07 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -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 {