Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

settings: use QWidget.toolTip to hold description text

It makes use of QWidget.toolTip property instead of adding extra .tooltip
attribute.

Changeset cf7675d1e59e

Parent cae442d049b5

by Yuya Nishihara

Changes to one file · Browse files at cf7675d1e59e Showing diff from parent cae442d049b5 Diff from another changeset...

 
790
791
792
793
 
794
795
796
 
820
821
822
823
 
 
 
824
825
826
 
790
791
792
 
793
794
795
796
 
820
821
822
 
823
824
825
826
827
828
@@ -790,7 +790,7 @@
  w = func(opts)   lbl = QLabel(label)   lbl.installEventFilter(self) - lbl.tooltip = tooltip + lbl.setToolTip(tooltip)   form.addRow(lbl, w)   widgets.append(w)   return widgets @@ -820,7 +820,9 @@
    def eventFilter(self, obj, event):   if event.type() == QEvent.Enter: - self.desctext.setHtml(obj.tooltip) + self.desctext.setHtml(obj.toolTip()) + if event.type() == QEvent.ToolTip: + return True # tooltip is shown in self.desctext   return False     def addPage(self, name):