mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
better image scaling on windows
This commit is contained in:
parent
7584bfe900
commit
7069036b59
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,10 @@ class AnkiWebView(QWebView):
|
|||
|
||||
def __init__(self):
|
||||
QWebView.__init__(self)
|
||||
self.setRenderHints(
|
||||
QPainter.TextAntialiasing |
|
||||
QPainter.SmoothPixmapTransform |
|
||||
QPainter.HighQualityAntialiasing)
|
||||
self.setObjectName("mainText")
|
||||
self._bridge = Bridge()
|
||||
self._page = AnkiWebPage(self._jsErr)
|
||||
|
|
Loading…
Reference in a new issue