Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable Backed out changeset: d7fb556fa348

Changeset 4038d91538b3

Parent d7fb556fa348

by Steve Borho

Changes to one file · Browse files at 4038d91538b3 Showing diff from parent d7fb556fa348 Diff from another changeset...

 
409
410
411
412
413
414
415
 
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
 
409
410
411
 
412
413
414
 
703
704
705
 
 
 
 
 
 
 
 
 
 
 
 
706
707
708
@@ -409,7 +409,6 @@
  self.setContextMenuPolicy(Qt.CustomContextMenu)   self.customContextMenuRequested.connect(self.menuRequested)   self.setTextElideMode(Qt.ElideLeft) - self.setItemDelegate(WctxItemDelegate())     def scrollTo(self, index, hint=QAbstractItemView.EnsureVisible):   # don't update horizontal position by selection change @@ -704,18 +703,6 @@
  def getChecked(self):   return self.checked.copy()   -class WctxItemDelegate(QItemDelegate): - '''Draw treeview checkboxes like standard QCheckBoxes''' - def drawCheck(self, painter, option, rect, state): - option.rect = rect - if state == Qt.Unchecked: - option.state |= QStyle.State_Off - elif state == Qt.Checked: - option.state |= QStyle.State_On - style = QApplication.style() - primitive = QStyle.PE_IndicatorCheckBox - return style.drawPrimitive(primitive, option, painter, None) -  def statusMessage(status, mst, upath):   tip = ''   if status in statusTypes: