Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1.2 and tip

stable settings: clear out tool tip text when no control has focus

Changeset 437a4f0708db

Parent cd04e688e16b

by David Golub

Changes to one file · Browse files at 437a4f0708db Showing diff from parent cd04e688e16b Diff from another changeset...

 
1051
1052
1053
 
 
 
 
 
 
1054
1055
1056
 
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
@@ -1051,6 +1051,12 @@
  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