|
@ -98,7 +98,8 @@ class TxDialog(QDialog, MessageBoxMixin): |
|
|
vbox.addWidget(QLabel(_("Transaction ID:"))) |
|
|
vbox.addWidget(QLabel(_("Transaction ID:"))) |
|
|
self.tx_hash_e = ButtonsLineEdit() |
|
|
self.tx_hash_e = ButtonsLineEdit() |
|
|
qr_show = lambda: parent.show_qrcode(str(self.tx_hash_e.text()), 'Transaction ID', parent=self) |
|
|
qr_show = lambda: parent.show_qrcode(str(self.tx_hash_e.text()), 'Transaction ID', parent=self) |
|
|
self.tx_hash_e.addButton(":icons/qrcode.png", qr_show, _("Show as QR code")) |
|
|
qr_icon = ":icons/qrcode_white.png" if ColorScheme.dark_scheme else ":icons/qrcode.png" |
|
|
|
|
|
self.tx_hash_e.addButton(qr_icon, qr_show, _("Show as QR code")) |
|
|
self.tx_hash_e.setReadOnly(True) |
|
|
self.tx_hash_e.setReadOnly(True) |
|
|
vbox.addWidget(self.tx_hash_e) |
|
|
vbox.addWidget(self.tx_hash_e) |
|
|
self.tx_desc = QLabel() |
|
|
self.tx_desc = QLabel() |
|
@ -139,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(":icons/qrcode.png")) |
|
|
b.setIcon(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) |
|
|