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

repomodel: left-align column headers

Changeset a6d2823e8203

Parent f87ac85f2ae4

by Adrian Buehlmann

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

 
412
413
414
415
416
 
 
 
 
 
417
418
419
 
412
413
414
 
 
415
416
417
418
419
420
421
422
@@ -412,8 +412,11 @@
  return nullvariant     def headerData(self, section, orientation, role): - if orientation == Qt.Horizontal and role == Qt.DisplayRole: - return QVariant(self._columns[section]) + if orientation == Qt.Horizontal: + if role == Qt.DisplayRole: + return QVariant(self._columns[section]) + if role == Qt.TextAlignmentRole: + return QVariant(Qt.AlignLeft)   return nullvariant     def rowFromRev(self, rev):