mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add combobox for Bluetooth local device selection
Add a combobox which can be used to list/select the available local Bluetooth devices. In this way, if a user has more than one local Bluetooth devices (integrated, dongles, etc.) he can choose which one he wants to use. Before this patch, only the default local Bluetooth device could be used. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
000c202d7d
commit
b5ac3a3fa8
3 changed files with 81 additions and 23 deletions
|
@ -37,12 +37,15 @@ private slots:
|
|||
void displayPairingMenu(const QPoint &pos);
|
||||
void pairingFinished(const QBluetoothAddress &address,QBluetoothLocalDevice::Pairing pairing);
|
||||
void error(QBluetoothLocalDevice::Error error);
|
||||
void localDeviceChanged(int);
|
||||
|
||||
private:
|
||||
Ui::BtDeviceSelectionDialog *ui;
|
||||
QBluetoothLocalDevice *localDevice;
|
||||
QBluetoothDeviceDiscoveryAgent *remoteDeviceDiscoveryAgent;
|
||||
QSharedPointer<QBluetoothDeviceInfo> selectedRemoteDeviceInfo;
|
||||
|
||||
void updateLocalDeviceInformation();
|
||||
};
|
||||
|
||||
#endif // BTDEVICESELECTIONDIALOG_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue