forked from M-Labs/artiq
gui/log: use QFontDatabase for fixed font
This commit is contained in:
parent
f9a6ba1884
commit
1d92c0874e
@ -22,8 +22,7 @@ class Model(QtCore.QAbstractTableModel):
|
||||
timer.timeout.connect(self.timer_tick)
|
||||
timer.start(100)
|
||||
|
||||
self.fixed_font = QtGui.QFont()
|
||||
self.fixed_font.setFamily("Monospace")
|
||||
self.fixed_font = QtGui.QFontDatabase.systemFont(QtGui.QFontDatabase.FixedFont)
|
||||
|
||||
self.white = QtGui.QBrush(QtGui.QColor(255, 255, 255))
|
||||
self.black = QtGui.QBrush(QtGui.QColor(0, 0, 0))
|
||||
|
Loading…
Reference in New Issue
Block a user