From 3ea6f685b27c5f7ba9f78791d34e3a5e3b3298f3 Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Tue, 19 May 2020 19:42:35 -0300 Subject: [PATCH] Added missing Anki icon to qt/aqt/previewer.py --- qt/aqt/previewer.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qt/aqt/previewer.py b/qt/aqt/previewer.py index cfafa1456..f099023f3 100644 --- a/qt/aqt/previewer.py +++ b/qt/aqt/previewer.py @@ -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