mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix building without BT support
I guess no one had tried this in a while. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1d10a56bdf
commit
3b0f38f24a
5 changed files with 29 additions and 11 deletions
|
@ -115,8 +115,12 @@ void GasTypeComboBoxItemDelegate::setModelData(QWidget *editor, QAbstractItemMod
|
|||
|
||||
ConfigureDiveComputerDialog::ConfigureDiveComputerDialog(QWidget *parent) : QDialog(parent),
|
||||
config(0),
|
||||
#ifdef BT_SUPPORT
|
||||
deviceDetails(0),
|
||||
btDeviceSelectionDialog(0)
|
||||
#else
|
||||
deviceDetails(0)
|
||||
#endif
|
||||
{
|
||||
ui.setupUi(this);
|
||||
|
||||
|
@ -134,7 +138,7 @@ ConfigureDiveComputerDialog::ConfigureDiveComputerDialog(QWidget *parent) : QDia
|
|||
connect(ui.logToFile, SIGNAL(stateChanged(int)), this, SLOT(checkLogFile(int)));
|
||||
connect(ui.connectButton, SIGNAL(clicked()), this, SLOT(dc_open()));
|
||||
connect(ui.disconnectButton, SIGNAL(clicked()), this, SLOT(dc_close()));
|
||||
#if BT_SUPPORT
|
||||
#ifdef BT_SUPPORT
|
||||
connect(ui.bluetoothMode, SIGNAL(clicked(bool)), this, SLOT(selectRemoteBluetoothDevice()));
|
||||
#else
|
||||
ui.bluetoothMode->setVisible(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue