electrum

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

commit 0a1c8f5546e403ca8812ee55802fbea126fb340c
parent 25c6a78ae05c759177011a7d184d407b78cb88e7
Author: ThomasV <thomasv@gitorious>
Date:   Sun,  3 May 2015 07:06:54 +0200

underline help label

Diffstat:
Mgui/qt/util.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gui/qt/util.py b/gui/qt/util.py @@ -116,15 +116,20 @@ class HelpLabel(QLabel): QLabel.__init__(self, text) self.help_text = help_text self.app = QCoreApplication.instance() + self.font = QFont() def mouseReleaseEvent(self, x): QMessageBox.information(self, 'Help', self.help_text, 'OK') def enterEvent(self, event): - self.app.setOverrideCursor(QCursor(Qt.WhatsThisCursor)) + self.font.setUnderline(True) + self.setFont(self.font) + self.app.setOverrideCursor(QCursor(Qt.PointingHandCursor)) return QLabel.enterEvent(self, event) def leaveEvent(self, event): + self.font.setUnderline(False) + self.setFont(self.font) self.app.setOverrideCursor(QCursor(Qt.ArrowCursor)) return QLabel.leaveEvent(self, event)