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:
parent
2ce1e6a1e9
commit
97ba77f4b5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user