1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 172fd9b

settings: do not clear description text on focus out (fixes #1429)

Otherwise long description cannot be read.

Backed out changeset 437a4f0708db.

  • Participants
  • Parent commits 084b8c7
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/settings.py

View file
  • Ignore whitespace
     def eventFilter(self, obj, event):
         if event.type() in (QEvent.Enter, QEvent.FocusIn):
             self.desctext.setHtml(obj.toolTip())
-        elif event.type() in (QEvent.Leave, QEvent.FocusOut):
-            focus = QApplication.focusWidget()
-            if focus is not None and hasattr(focus, 'toolTip'):
-                self.desctext.setHtml(focus.toolTip())
-            else:
-                self.desctext.setHtml('')
         if event.type() == QEvent.ToolTip:
             return True  # tooltip is shown in self.desctext
         return False