mirror of https://github.com/m-labs/artiq.git
gui: use monospace font in log
This commit is contained in:
parent
ef8b09d9bc
commit
5979f85c1c
|
@ -12,6 +12,15 @@ class _LogModel(ListSyncModel):
|
|||
ListSyncModel.__init__(self,
|
||||
["RID", "Message"],
|
||||
parent, init)
|
||||
self.fixed_font = QtGui.QFont()
|
||||
self.fixed_font.setFamily("Monospace")
|
||||
|
||||
def data(self, index, role):
|
||||
if (role == QtCore.Qt.FontRole and index.isValid()
|
||||
and index.column() == 1):
|
||||
return self.fixed_font
|
||||
else:
|
||||
return ListSyncModel.data(self, index, role)
|
||||
|
||||
def convert(self, v, column):
|
||||
return v[column]
|
||||
|
|
Loading…
Reference in New Issue