From 4777fda7e52be7043dee2f0fdd8b4704e337bf19 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Fri, 4 Oct 2024 13:02:42 -0700 Subject: [PATCH] QFunctionTable: Use icon helper function for search icon creation --- angrmanagement/ui/widgets/qfunction_table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/angrmanagement/ui/widgets/qfunction_table.py b/angrmanagement/ui/widgets/qfunction_table.py index dee91666b..c1449dc6f 100644 --- a/angrmanagement/ui/widgets/qfunction_table.py +++ b/angrmanagement/ui/widgets/qfunction_table.py @@ -5,7 +5,6 @@ from functools import partial from typing import TYPE_CHECKING -import qtawesome as qta from angr.analyses.code_tagging import CodeTags from cle.backends.uefi_firmware import UefiPE from PySide6.QtCore import SIGNAL, QAbstractTableModel, QEvent, Qt @@ -24,6 +23,7 @@ from angrmanagement.config import Conf from angrmanagement.data.instance import Instance, ObjectContainer +from angrmanagement.ui.icons import icon from angrmanagement.ui.menus.function_context_menu import FunctionContextMenu from angrmanagement.ui.toolbars import FunctionTableToolbar @@ -530,7 +530,7 @@ def _init_widgets(self, selection_callback=None) -> None: self._filter_box = QFunctionTableFilterBox(self) self._filter_box.setClearButtonEnabled(True) self._filter_box.addAction( - qta.icon("fa5s.search", color=Conf.palette_placeholdertext), QLineEdit.ActionPosition.LeadingPosition + icon("search", color=Conf.palette_placeholdertext), QLineEdit.ActionPosition.LeadingPosition ) self._filter_box.setPlaceholderText("Filter by name...") self._filter_box.textChanged.connect(self._on_filter_box_text_changed)