diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-02 08:54:38 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | daedffce2ecf00e47ac63f67f6ab9f9ced65d512 (patch) | |
tree | d3f0e6ba1adcffc26da40b7b4aa44e60a02ff792 /desktop-widgets | |
parent | 46441689b97b279845b3bb26299042890513a253 (diff) | |
download | subsurface-daedffce2ecf00e47ac63f67f6ab9f9ced65d512.tar.gz |
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/btdeviceselectiondialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/btdeviceselectiondialog.cpp b/desktop-widgets/btdeviceselectiondialog.cpp index 1bb675e46..01d8bd9de 100644 --- a/desktop-widgets/btdeviceselectiondialog.cpp +++ b/desktop-widgets/btdeviceselectiondialog.cpp @@ -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 |