Skip to content

Commit

Permalink
QFunctionTable: Use icon helper function for search icon creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Oct 4, 2024
1 parent efb3fc7 commit 4777fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angrmanagement/ui/widgets/qfunction_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4777fda

Please sign in to comment.