mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
parent
1b8bab73d1
commit
cd3f9ff646
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ class DataModel(QAbstractTableModel):
|
|||
align: Qt.AlignmentFlag | int = Qt.AlignmentFlag.AlignVCenter
|
||||
if self.column_at(index).alignment == Columns.ALIGNMENT_CENTER:
|
||||
align |= Qt.AlignmentFlag.AlignHCenter
|
||||
return align
|
||||
return getattr(align, "value", align)
|
||||
elif role == Qt.ItemDataRole.DisplayRole:
|
||||
return self.get_cell(index).text
|
||||
elif role == Qt.ItemDataRole.ToolTipRole and self._want_tooltips:
|
||||
|
|
Loading…
Reference in a new issue