From 7449b0eb8bc45664dce9fd112228115fd5efda46 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 21 May 2012 12:13:30 +0900 Subject: [PATCH] left align question/answer/sort field/template --- aqt/browser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aqt/browser.py b/aqt/browser.py index 13c6c63a3..c1bcdd5cd 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -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: