code cleanup: replace deprecated setBackgroundColor() method

Here the replacement has been around for a very long time.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-01-02 08:54:38 -08:00
parent 46441689b9
commit daedffce2e

View file

@ -213,7 +213,7 @@ void BtDeviceSelectionDialog::addRemoteDevice(const QBluetoothDeviceInfo &remote
QListWidgetItem *item = new QListWidgetItem(deviceLabel);
item->setData(Qt::UserRole, QVariant::fromValue(remoteDeviceInfo));
item->setBackgroundColor(pairingColor);
item->setBackground(pairingColor);
ui->discoveredDevicesList->addItem(item);
}
@ -342,7 +342,7 @@ void BtDeviceSelectionDialog::pairingFinished(const QBluetoothAddress &address,
QString updatedDeviceLabel = item->text().replace(pairingExpression, pairingStatusLabel);
item->setText(updatedDeviceLabel);
item->setBackgroundColor(pairingColor);
item->setBackground(pairingColor);
}
// Check if the updated device is the selected one from the list and inform the user that it can/cannot start the download mode