Fix typos on Bluetooth selection widget

Fix "lable" typos from Bluetooth selection widget.

Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Claudiu Olteanu 2015-07-19 22:05:00 +03:00 committed by Dirk Hohndel
parent aaf61c52d8
commit 5fd0c7dd43
2 changed files with 7 additions and 7 deletions

View file

@ -46,7 +46,7 @@ BtDeviceSelectionDialog::BtDeviceSelectionDialog(QWidget *parent) :
this, SLOT(localDeviceChanged(int))); this, SLOT(localDeviceChanged(int)));
} else { } else {
// If there is only one local Bluetooth adapter hide the combobox and the label // If there is only one local Bluetooth adapter hide the combobox and the label
ui->selectDeviceLable->hide(); ui->selectDeviceLabel->hide();
ui->localSelectedDevice->hide(); ui->localSelectedDevice->hide();
} }
@ -131,12 +131,12 @@ void BtDeviceSelectionDialog::hostModeStateChanged(QBluetoothLocalDevice::HostMo
void BtDeviceSelectionDialog::addRemoteDevice(const QBluetoothDeviceInfo &remoteDeviceInfo) void BtDeviceSelectionDialog::addRemoteDevice(const QBluetoothDeviceInfo &remoteDeviceInfo)
{ {
QString deviceLable = QString("%1 (%2)").arg(remoteDeviceInfo.name()).arg(remoteDeviceInfo.address().toString()); QString deviceLabel = QString("%1 (%2)").arg(remoteDeviceInfo.name()).arg(remoteDeviceInfo.address().toString());
QList<QListWidgetItem *> itemsWithSameSignature = ui->discoveredDevicesList->findItems(deviceLable, Qt::MatchStartsWith); QList<QListWidgetItem *> itemsWithSameSignature = ui->discoveredDevicesList->findItems(deviceLabel, Qt::MatchStartsWith);
// Check if the remote device is already in the list // Check if the remote device is already in the list
if (itemsWithSameSignature.empty()) { if (itemsWithSameSignature.empty()) {
QListWidgetItem *item = new QListWidgetItem(deviceLable); QListWidgetItem *item = new QListWidgetItem(deviceLabel);
QBluetoothLocalDevice::Pairing pairingStatus = localDevice->pairingStatus(remoteDeviceInfo.address()); QBluetoothLocalDevice::Pairing pairingStatus = localDevice->pairingStatus(remoteDeviceInfo.address());
item->setData(Qt::UserRole, QVariant::fromValue(remoteDeviceInfo)); item->setData(Qt::UserRole, QVariant::fromValue(remoteDeviceInfo));

View file

@ -123,7 +123,7 @@
</property> </property>
<layout class="QFormLayout" name="formLayout_2"> <layout class="QFormLayout" name="formLayout_2">
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="deviceNameLable"> <widget class="QLabel" name="deviceNameLabel">
<property name="text"> <property name="text">
<string>Name: </string> <string>Name: </string>
</property> </property>
@ -137,7 +137,7 @@
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="deviceAddressLable"> <widget class="QLabel" name="deviceAddressLabel">
<property name="text"> <property name="text">
<string>Address:</string> <string>Address:</string>
</property> </property>
@ -198,7 +198,7 @@
<widget class="QComboBox" name="localSelectedDevice"/> <widget class="QComboBox" name="localSelectedDevice"/>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="selectDeviceLable"> <widget class="QLabel" name="selectDeviceLabel">
<property name="text"> <property name="text">
<string>Select device:</string> <string>Select device:</string>
</property> </property>