2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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

View File

@ -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))