summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/btdeviceselectiondialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/btdeviceselectiondialog.cpp')
-rw-r--r--desktop-widgets/btdeviceselectiondialog.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/desktop-widgets/btdeviceselectiondialog.cpp b/desktop-widgets/btdeviceselectiondialog.cpp
index bf56005d3..1bb675e46 100644
--- a/desktop-widgets/btdeviceselectiondialog.cpp
+++ b/desktop-widgets/btdeviceselectiondialog.cpp
@@ -333,14 +333,13 @@ void BtDeviceSelectionDialog::pairingFinished(const QBluetoothAddress &address,
// Find the items which represent the BTH device and update their state
QList<QListWidgetItem *> items = ui->discoveredDevicesList->findItems(remoteDeviceStringAddress, Qt::MatchContains);
- QRegularExpression pairingExpression = QRegularExpression(QString("%1|%2|%3").arg(tr("PAIRED"),
- tr("AUTHORIZED_PAIRED"),
- tr("UNPAIRED")));
+ QRegularExpression pairingExpression(QString("%1|%2|%3").arg(tr("PAIRED"),
+ tr("AUTHORIZED_PAIRED"),
+ tr("UNPAIRED")));
for (int i = 0; i < items.count(); ++i) {
QListWidgetItem *item = items.at(i);
- QString updatedDeviceLabel = item->text().replace(QRegularExpression(pairingExpression),
- pairingStatusLabel);
+ QString updatedDeviceLabel = item->text().replace(pairingExpression, pairingStatusLabel);
item->setText(updatedDeviceLabel);
item->setBackgroundColor(pairingColor);