mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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
|
return f
|
||||||
if role == Qt.TextAlignmentRole:
|
if role == Qt.TextAlignmentRole:
|
||||||
align = Qt.AlignVCenter
|
align = Qt.AlignVCenter
|
||||||
if index.column() > 1:
|
if self.activeCols[index.column()] not in ("question", "answer",
|
||||||
|
"template", "deck", "noteFld"):
|
||||||
align |= Qt.AlignHCenter
|
align |= Qt.AlignHCenter
|
||||||
return align
|
return align
|
||||||
elif role == Qt.DisplayRole or role == Qt.EditRole:
|
elif role == Qt.DisplayRole or role == Qt.EditRole:
|
||||||
|
|
Loading…
Reference in a new issue