tfix qt5: setBackgroundColor - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 4c2269844481e95d19dbd00bac9e994ea2eeb6c4
DIR parent 417cd2581ac16976100f0dff2cdb14a09970109d
HTML Author: ThomasV <thomasv@electrum.org>
Date: Sun, 24 Sep 2017 10:04:32 +0200
fix qt5: setBackgroundColor
Diffstat:
M gui/qt/address_list.py | 4 ++--
M gui/qt/utxo_list.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/gui/qt/address_list.py b/gui/qt/address_list.py
t@@ -95,9 +95,9 @@ class AddressList(MyTreeWidget):
address_item.setData(0, Qt.UserRole, address)
address_item.setData(0, Qt.UserRole+1, True) # label can be edited
if self.wallet.is_frozen(address):
- address_item.setBackgroundColor(0, QColor('lightblue'))
+ address_item.setBackground(0, QColor('lightblue'))
if self.wallet.is_beyond_limit(address, is_change):
- address_item.setBackgroundColor(0, QColor('red'))
+ address_item.setBackground(0, QColor('red'))
if is_used:
if not used_flag:
seq_item.insertChild(0, used_item)
DIR diff --git a/gui/qt/utxo_list.py b/gui/qt/utxo_list.py
t@@ -53,7 +53,7 @@ class UTXOList(MyTreeWidget):
utxo_item.setFont(4, QFont(MONOSPACE_FONT))
utxo_item.setData(0, Qt.UserRole, name)
if self.wallet.is_frozen(address):
- utxo_item.setBackgroundColor(0, QColor('lightblue'))
+ utxo_item.setBackground(0, QColor('lightblue'))
self.addChild(utxo_item)
def create_menu(self, position):