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 <QElapsedTimer> | ||||||
| #include <QTimer> | #include <QTimer> | ||||||
| #include <QDateTime> | #include <QDateTime> | ||||||
|  | 
 | ||||||
|  | #if defined(BT_SUPPORT) | ||||||
| #include <QBluetoothLocalDevice> | #include <QBluetoothLocalDevice> | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| #include "qt-models/divelistmodel.h" | #include "qt-models/divelistmodel.h" | ||||||
| #include "qt-models/gpslistmodel.h" | #include "qt-models/gpslistmodel.h" | ||||||
|  | @ -78,6 +81,7 @@ extern "C" int gitProgressCB(const char *text) | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | #if defined(BT_SUPPOR) | ||||||
| void QMLManager::btHostModeChange(QBluetoothLocalDevice::HostMode state) | void QMLManager::btHostModeChange(QBluetoothLocalDevice::HostMode state) | ||||||
| { | { | ||||||
| 	BTDiscovery *btDiscovery = BTDiscovery::instance(); | 	BTDiscovery *btDiscovery = BTDiscovery::instance(); | ||||||
|  | @ -94,6 +98,7 @@ void QMLManager::btHostModeChange(QBluetoothLocalDevice::HostMode state) | ||||||
| 	} | 	} | ||||||
| 	emit btEnabledChanged(); | 	emit btEnabledChanged(); | ||||||
| } | } | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| QMLManager::QMLManager() : m_locationServiceEnabled(false), | QMLManager::QMLManager() : m_locationServiceEnabled(false), | ||||||
| 	m_verboseEnabled(false), | 	m_verboseEnabled(false), | ||||||
|  |  | ||||||
|  | @ -9,7 +9,7 @@ | ||||||
| #include <QElapsedTimer> | #include <QElapsedTimer> | ||||||
| #include <QColor> | #include <QColor> | ||||||
| 
 | 
 | ||||||
| #if BT_SUPPORT | #if defined(BT_SUPPORT) | ||||||
| #include "core/btdiscovery.h" | #include "core/btdiscovery.h" | ||||||
| #endif | #endif | ||||||
| #include "core/gpslocation.h" | #include "core/gpslocation.h" | ||||||
|  | @ -138,7 +138,9 @@ public: | ||||||
| 	bool showPin() const; | 	bool showPin() const; | ||||||
| 	void setShowPin(bool enable); | 	void setShowPin(bool enable); | ||||||
| 	Q_INVOKABLE void setStatusbarColor(QColor color); | 	Q_INVOKABLE void setStatusbarColor(QColor color); | ||||||
|  | #if defined(BT_SUPPORT) | ||||||
| 	void btHostModeChange(QBluetoothLocalDevice::HostMode state); | 	void btHostModeChange(QBluetoothLocalDevice::HostMode state); | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| #if defined(Q_OS_ANDROID) | #if defined(Q_OS_ANDROID) | ||||||
| 	void writeToAppLogFile(QString logText); | 	void writeToAppLogFile(QString logText); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue