summaryrefslogtreecommitdiffstats
path: root/qt-ui/btdeviceselectiondialog.cpp
diff options
context:
space:
mode:
authorGravatar Claudiu Olteanu <olteanu.claudiu@ymail.com>2015-07-17 01:21:49 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-19 05:50:33 -0700
commit8f8002b8d13f6332b8f4cf71c74d745cb1a35fe3 (patch)
treef2e4e3f809b256239135b904f7c1c899784471c3 /qt-ui/btdeviceselectiondialog.cpp
parent619e97ee4fcd008c8e2f73d1d7653e932971c453 (diff)
downloadsubsurface-8f8002b8d13f6332b8f4cf71c74d745cb1a35fe3.tar.gz
Use itemClicked signal instead of itemActivated for BT device selection
On Android platforms the system is configured to raise the itemActivated signal when the user double clicks an item. Since the items are small it is pretty hard to double click them. Therefore use the itemClicked signal instead of the itemActivated signal. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/btdeviceselectiondialog.cpp')
-rw-r--r--qt-ui/btdeviceselectiondialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/btdeviceselectiondialog.cpp b/qt-ui/btdeviceselectiondialog.cpp
index 6a2a97731..b81b1f3f3 100644
--- a/qt-ui/btdeviceselectiondialog.cpp
+++ b/qt-ui/btdeviceselectiondialog.cpp
@@ -29,8 +29,8 @@ BtDeviceSelectionDialog::BtDeviceSelectionDialog(QWidget *parent) :
// Disable the save button because there is no device selected
ui->save->setEnabled(false);
- connect(ui->discoveredDevicesList, SIGNAL(itemActivated(QListWidgetItem*)),
- this, SLOT(itemActivated(QListWidgetItem*)));
+ connect(ui->discoveredDevicesList, SIGNAL(itemClicked(QListWidgetItem*)),
+ this, SLOT(itemClicked(QListWidgetItem*)));
// Set UI information about the local device
ui->deviceAddress->setText(localDevice->address().toString());
@@ -173,7 +173,7 @@ void BtDeviceSelectionDialog::addRemoteDevice(const QBluetoothDeviceInfo &remote
}
}
-void BtDeviceSelectionDialog::itemActivated(QListWidgetItem *item)
+void BtDeviceSelectionDialog::itemClicked(QListWidgetItem *item)
{
QBluetoothDeviceInfo remoteDeviceInfo = item->data(Qt::UserRole).value<QBluetoothDeviceInfo>();
QBluetoothLocalDevice::Pairing pairingStatus = localDevice->pairingStatus(remoteDeviceInfo.address());