mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
left align question/answer/sort field/template
This commit is contained in:
parent
b7fb620249
commit
7449b0eb8b
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue