mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
f418c9beea
commit
88a3a1b3c0
@ -168,14 +168,14 @@ class TextBrowser(QWidget, dataget):
|
|||||||
def _setnextfont(self, font, cleared):
|
def _setnextfont(self, font, cleared):
|
||||||
if cleared:
|
if cleared:
|
||||||
self.textbrowser.setFont(font)
|
self.textbrowser.setFont(font)
|
||||||
else:
|
|
||||||
self.textbrowser.moveCursor(QTextCursor.MoveOperation.End)
|
self.textbrowser.moveCursor(QTextCursor.MoveOperation.End)
|
||||||
f = QTextCharFormat()
|
f = QTextCharFormat()
|
||||||
f.setFont(font)
|
f.setFont(font)
|
||||||
f.setForeground(self.tranparentcolor)
|
f.setForeground(self.tranparentcolor)
|
||||||
c = self.textbrowser.textCursor()
|
c = self.textbrowser.textCursor()
|
||||||
c.setCharFormat(f)
|
c.setCharFormat(f)
|
||||||
self.textbrowser.setTextCursor(c)
|
self.textbrowser.setTextCursor(c)
|
||||||
|
|
||||||
def iter_append(self, iter_context_class, origin, atcenter, text, color, cleared):
|
def iter_append(self, iter_context_class, origin, atcenter, text, color, cleared):
|
||||||
self._textbrowser_iter_append(
|
self._textbrowser_iter_append(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user