Skip to content

Commit

Permalink
QTextCharFormat.setFontFamily() is deprecated since Qt6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zas authored and phw committed Apr 30, 2024
1 parent 6aa68cf commit 8227a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picard/ui/logview.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _setup_formats(self):
self.formats = {}
for level, feat in log.levels_features.items():
text_fmt = QtGui.QTextCharFormat()
text_fmt.setFontFamily(FONT_FAMILY_MONOSPACE)
text_fmt.setFontFamilies([FONT_FAMILY_MONOSPACE])
text_fmt.setForeground(interface_colors.get_qcolor(feat.color_key))
self.formats[level] = text_fmt

Expand Down

0 comments on commit 8227a97

Please sign in to comment.