Browse Source

qt icons: update remaining QIcon() constructors

follow-up #5053
sqlite_db
SomberNight 6 years ago
parent
commit
d6986347e6
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/transaction_dialog.py
  2. 2
      electrum/plugins/hw_wallet/qt.py

2
electrum/gui/qt/transaction_dialog.py

@ -140,7 +140,7 @@ class TxDialog(QDialog, MessageBoxMixin):
b.setDefault(True) b.setDefault(True)
self.qr_button = b = QPushButton() self.qr_button = b = QPushButton()
b.setIcon(QIcon(qr_icon)) b.setIcon(read_QIcon(qr_icon))
b.clicked.connect(self.show_qr) b.clicked.connect(self.show_qr)
self.copy_button = CopyButton(lambda: str(self.tx), parent.app) self.copy_button = CopyButton(lambda: str(self.tx), parent.app)

2
electrum/plugins/hw_wallet/qt.py

@ -200,7 +200,7 @@ class QtPluginBase(object):
return return
tooltip = self.device + '\n' + (keystore.label or 'unnamed') tooltip = self.device + '\n' + (keystore.label or 'unnamed')
cb = partial(self.show_settings_dialog, window, keystore) cb = partial(self.show_settings_dialog, window, keystore)
button = StatusBarButton(QIcon(self.icon_unpaired), tooltip, cb) button = StatusBarButton(read_QIcon(self.icon_unpaired), tooltip, cb)
button.icon_paired = self.icon_paired button.icon_paired = self.icon_paired
button.icon_unpaired = self.icon_unpaired button.icon_unpaired = self.icon_unpaired
window.statusBar().addPermanentWidget(button) window.statusBar().addPermanentWidget(button)

Loading…
Cancel
Save