gui/log: top cell alignment

This commit is contained in:
Sebastien Bourdeauducq 2016-02-10 06:34:11 +01:00
parent 2ce1e6a1e9
commit 97ba77f4b5
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ class Model(QtCore.QAbstractTableModel):
if (role == QtCore.Qt.FontRole
and index.column() == 1):
return self.fixed_font
elif role == QtCore.Qt.TextAlignmentRole:
return QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop
elif role == QtCore.Qt.BackgroundRole:
level = self.entries[index.row()][0]
if level >= logging.ERROR: