use embedded icon

(cherry picked from commit bbc41dff09)
This commit is contained in:
Moritz Raabe
2020-09-02 16:46:51 +02:00
parent d6aa10164a
commit 7e9a3d649a
4 changed files with 9 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ import capa.rules
import capa.ida.helpers
import capa.render.utils as rutils
import capa.features.extractors.ida
from capa.ida.plugin.icon import QICON
from capa.ida.plugin.view import CapaExplorerQtreeView
from capa.ida.plugin.hooks import CapaExplorerIdaHooks
from capa.ida.plugin.model import CapaExplorerDataModel
@@ -28,8 +29,6 @@ from capa.ida.plugin.proxy import CapaExplorerSortFilterProxyModel
logger = logging.getLogger(__name__)
settings = ida_settings.IDASettings("capa")
ICON_PATH = os.path.join(os.path.dirname(__file__), "img", "capa_icon.png")
class CapaExplorerForm(idaapi.PluginForm):
def __init__(self, name):
@@ -58,7 +57,7 @@ class CapaExplorerForm(idaapi.PluginForm):
def OnCreate(self, form):
""" """
self.parent = self.FormToPyQtWidget(form)
self.parent.setWindowIcon(QtGui.QIcon(ICON_PATH))
self.parent.setWindowIcon(QICON)
self.load_interface()
self.load_capa_results()
self.load_ida_hooks()

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB