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

settings: show descriptions when mouse enters a label

Changeset e9d7816035b0

Parent a053f539fcd2

by Steve Borho

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

 
20
21
22
23
24
25
26
 
648
649
650
651
 
 
 
 
652
653
654
 
 
 
 
 
655
656
657
 
20
21
22
 
23
24
25
 
647
648
649
 
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
@@ -20,7 +20,6 @@
 from PyQt4.QtGui import *    # Technical Debt -# clicking on labels should show their description  # stacked widget or pages need to be scrollable  # add extensions page after THG 1.1 is released  # we need a consistent icon set @@ -648,10 +647,18 @@
  else:   func = values   w = func(opts) - form.addRow(label, w) + lbl = QLabel(label) + lbl.installEventFilter(self) + lbl.tooltip = tooltip + form.addRow(lbl, w)   widgets.append(w)   return widgets   + def eventFilter(self, obj, event): + if event.type() == QEvent.Enter: + self.desctext.setText(obj.tooltip) + return False +   def addPage(self, name):   for data in INFO:   if name == data[0]['name']: