2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

gui/log: top cell alignment

This commit is contained in:
Sebastien Bourdeauducq 2016-02-10 06:34:11 +01:00
parent 2ce1e6a1e9
commit 97ba77f4b5

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: