Skip to content
Snippets Groups Projects
Commit 2d07a2b3 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

QT_UTIL: TextShowWidget: FizedFont

parent 6222e39a
No related branches found
No related tags found
No related merge requests found
......@@ -255,6 +255,9 @@ class TextShowWidget(QWidget):
self._find_input.setFocus()
self._find_input.textChanged.connect(self.find_changed)
cf = self._text_area.currentCharFormat()
cf.setFont(QFontDatabase.systemFont(QFontDatabase.FixedFont))
self._text_area.setCurrentCharFormat(cf)
self._text_area.setReadOnly(True)
self._text_area.setPlainText(text)
self.html = self._text_area.toHtml()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment