forked from M-Labs/artiq
1
0
Fork 0

gui/log: use QFontDatabase for fixed font

This commit is contained in:
Sebastien Bourdeauducq 2016-01-29 23:21:22 +01:00
parent f9a6ba1884
commit 1d92c0874e
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ class Model(QtCore.QAbstractTableModel):
timer.timeout.connect(self.timer_tick) timer.timeout.connect(self.timer_tick)
timer.start(100) timer.start(100)
self.fixed_font = QtGui.QFont() self.fixed_font = QtGui.QFontDatabase.systemFont(QtGui.QFontDatabase.FixedFont)
self.fixed_font.setFamily("Monospace")
self.white = QtGui.QBrush(QtGui.QColor(255, 255, 255)) self.white = QtGui.QBrush(QtGui.QColor(255, 255, 255))
self.black = QtGui.QBrush(QtGui.QColor(0, 0, 0)) self.black = QtGui.QBrush(QtGui.QColor(0, 0, 0))