mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make sure we can still build without BT_SUPPORT
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8f6827ab12
commit
a48a42efe0
2 changed files with 8 additions and 1 deletions
|
@ -12,7 +12,10 @@
|
|||
#include <QElapsedTimer>
|
||||
#include <QTimer>
|
||||
#include <QDateTime>
|
||||
|
||||
#if defined(BT_SUPPORT)
|
||||
#include <QBluetoothLocalDevice>
|
||||
#endif
|
||||
|
||||
#include "qt-models/divelistmodel.h"
|
||||
#include "qt-models/gpslistmodel.h"
|
||||
|
@ -78,6 +81,7 @@ extern "C" int gitProgressCB(const char *text)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(BT_SUPPOR)
|
||||
void QMLManager::btHostModeChange(QBluetoothLocalDevice::HostMode state)
|
||||
{
|
||||
BTDiscovery *btDiscovery = BTDiscovery::instance();
|
||||
|
@ -94,6 +98,7 @@ void QMLManager::btHostModeChange(QBluetoothLocalDevice::HostMode state)
|
|||
}
|
||||
emit btEnabledChanged();
|
||||
}
|
||||
#endif
|
||||
|
||||
QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||
m_verboseEnabled(false),
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <QElapsedTimer>
|
||||
#include <QColor>
|
||||
|
||||
#if BT_SUPPORT
|
||||
#if defined(BT_SUPPORT)
|
||||
#include "core/btdiscovery.h"
|
||||
#endif
|
||||
#include "core/gpslocation.h"
|
||||
|
@ -138,7 +138,9 @@ public:
|
|||
bool showPin() const;
|
||||
void setShowPin(bool enable);
|
||||
Q_INVOKABLE void setStatusbarColor(QColor color);
|
||||
#if defined(BT_SUPPORT)
|
||||
void btHostModeChange(QBluetoothLocalDevice::HostMode state);
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_ANDROID)
|
||||
void writeToAppLogFile(QString logText);
|
||||
|
|
Loading…
Add table
Reference in a new issue