electrum

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

commit b6beb2e97c10a39d4f0380fed0c85186e5e6ff21
parent 39d765f122919377338ad11b4d9d551e852554f4
Author: Amir Taaki <genjix@riseup.net>
Date:   Thu, 28 Jun 2012 15:28:24 +0200

fix TextedLineEdit tabbing behaviour.

Diffstat:
Mlib/gui_lite.py | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -133,12 +133,17 @@ class TextedLineEdit(QLineEdit): def mousePressEvent(self, event): if self.isReadOnly(): self.become_active() - return super(QLineEdit, self).mousePressEvent(event) + QLineEdit.mousePressEvent(self, event) def focusOutEvent(self, event): if self.text() == "": self.become_inactive() - return super(QLineEdit, self).focusOutEvent(event) + QLineEdit.focusOutEvent(self, event) + + def focusInEvent(self, event): + if self.isReadOnly(): + self.become_active() + QLineEdit.focusInEvent(self, event) def become_inactive(self): self.setText(self.inactive_text)