electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a6d1eef54959479441effc7ad2ed4c6705ed3b74
parent 87fa402c345f1b59daa4f85bc61517b9d80052ff
Author: ThomasV <thomasv@gitorious>
Date:   Wed,  7 May 2014 16:15:22 +0200

payment requests: add style sheet for readonly fields

Diffstat:
Mgui/qt/__init__.py | 6++++--
Mgui/qt/main_window.py | 4++++
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py @@ -182,8 +182,10 @@ class ElectrumGui: self.main_window.emit(SIGNAL('payment_request_failed')) threading.Thread(target=payment_request).start() - - self.main_window.set_send(address, amount, label, message) + self.main_window.tabs.setCurrentIndex(1) + else: + self.main_window.set_send(address, amount, label, message) + if self.lite_window: self.lite_window.set_payment_fields(address, amount) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -897,10 +897,13 @@ class ElectrumWindow(QMainWindow): def payment_request_ok(self): + style = "QWidget { background-color:none;border:none;}" self.payto_e.setText(self.payment_request.domain) self.payto_e.setReadOnly(True) + self.payto_e.setStyleSheet(style) self.amount_e.setText(self.format_amount(self.payment_request.get_amount())) self.amount_e.setReadOnly(True) + self.amount_e.setStyleSheet(style) def set_send(self, address, amount, label, message): @@ -926,6 +929,7 @@ class ElectrumWindow(QMainWindow): for e in [self.payto_e, self.message_e, self.amount_e, self.fee_e]: e.setText('') self.set_frozen(e,False) + e.setStyleSheet("") self.set_pay_from([]) self.update_status()