Added missing Anki icon to qt/aqt/previewer.py

This commit is contained in:
evandrocoan 2020-05-19 19:42:35 -03:00
parent 7384df8f19
commit 3ea6f685b2

View File

@ -7,6 +7,8 @@ import re
import time
from typing import Any, Callable, List, Optional, Union
from PyQt5 import QtGui
from anki.cards import Card
from anki.lang import _
from aqt import AnkiQt, gui_hooks
@ -41,6 +43,11 @@ class Previewer(QDialog):
self._parent = parent
self._close_callback = on_close
self.mw = mw
icon = QtGui.QIcon()
icon.addPixmap(
QtGui.QPixmap(":/icons/anki.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off
)
self.setWindowIcon(icon)
def card(self) -> Optional[Card]:
raise NotImplementedError