mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
don't force browser column font unless overriden
This commit is contained in:
parent
49e2d82aae
commit
7405c1e7f1
1 changed files with 4 additions and 1 deletions
|
@ -77,13 +77,16 @@ class DataModel(QAbstractTableModel):
|
|||
if self.activeCols[index.column()] not in (
|
||||
"question", "answer", "noteFld"):
|
||||
return
|
||||
f = QFont()
|
||||
row = index.row()
|
||||
c = self.getCard(index)
|
||||
t = c.template()
|
||||
if not t.get("bfont"):
|
||||
return
|
||||
f = QFont()
|
||||
f.setFamily(t.get("bfont", "arial"))
|
||||
f.setPixelSize(t.get("bsize", 12))
|
||||
return f
|
||||
|
||||
elif role == Qt.TextAlignmentRole:
|
||||
align = Qt.AlignVCenter
|
||||
if self.activeCols[index.column()] not in ("question", "answer",
|
||||
|
|
Loading…
Reference in a new issue