mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -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 (
|
if self.activeCols[index.column()] not in (
|
||||||
"question", "answer", "noteFld"):
|
"question", "answer", "noteFld"):
|
||||||
return
|
return
|
||||||
f = QFont()
|
|
||||||
row = index.row()
|
row = index.row()
|
||||||
c = self.getCard(index)
|
c = self.getCard(index)
|
||||||
t = c.template()
|
t = c.template()
|
||||||
|
if not t.get("bfont"):
|
||||||
|
return
|
||||||
|
f = QFont()
|
||||||
f.setFamily(t.get("bfont", "arial"))
|
f.setFamily(t.get("bfont", "arial"))
|
||||||
f.setPixelSize(t.get("bsize", 12))
|
f.setPixelSize(t.get("bsize", 12))
|
||||||
return f
|
return f
|
||||||
|
|
||||||
elif role == Qt.TextAlignmentRole:
|
elif role == Qt.TextAlignmentRole:
|
||||||
align = Qt.AlignVCenter
|
align = Qt.AlignVCenter
|
||||||
if self.activeCols[index.column()] not in ("question", "answer",
|
if self.activeCols[index.column()] not in ("question", "answer",
|
||||||
|
|
Loading…
Reference in a new issue