left align question/answer/sort field/template

This commit is contained in:
Damien Elmes 2012-05-21 12:13:30 +09:00
parent b7fb620249
commit 7449b0eb8b

View file

@ -71,7 +71,8 @@ class DataModel(QAbstractTableModel):
return f
if role == Qt.TextAlignmentRole:
align = Qt.AlignVCenter
if index.column() > 1:
if self.activeCols[index.column()] not in ("question", "answer",
"template", "deck", "noteFld"):
align |= Qt.AlignHCenter
return align
elif role == Qt.DisplayRole or role == Qt.EditRole: