Changeset a6d2823e8203…
Parent f87ac85f2ae4…
by
Changes to one file · Browse files at a6d2823e8203 Showing diff from parent f87ac85f2ae4 Diff from another changeset...
@@ -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):
|
Loading...