Skip to content

Commit

Permalink
change search window button text and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Oct 26, 2023
1 parent bef8801 commit f70acfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/asammdf/gui/dialogs/advanced_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from traceback import format_exc

from natsort import natsorted
from PySide6 import QtCore, QtWidgets
from PySide6 import QtCore, QtWidgets, QtGui

from ...blocks.utils import extract_xml_comment
from ..ui.search_dialog import Ui_SearchDialog
Expand All @@ -30,7 +30,7 @@ def __init__(
show_apply=False,
show_pattern=True,
apply_text="Apply",
add_window_text="Add window",
add_window_text="Add channels",
show_search=True,
window_title="Search & select channels",
pattern=None,
Expand All @@ -40,6 +40,10 @@ def __init__(
super().__init__(*args, **kwargs)
self.setupUi(self)

icon = QtGui.QIcon()
icon.addFile(":/search.png", QtCore.QSize(), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.setWindowIcon(icon)

self.selection.can_delete_items = True
self.selection.all_texts = True

Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/gui/ui/search_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def retranslateUi(self, SearchDialog):
self.label.setText(QCoreApplication.translate("SearchDialog", "Final selection", None))
self.cancel_btn.setText(QCoreApplication.translate("SearchDialog", "Cancel", None))
self.apply_btn.setText(QCoreApplication.translate("SearchDialog", "Apply", None))
self.add_window_btn.setText(QCoreApplication.translate("SearchDialog", "Add window", None))
self.add_window_btn.setText(QCoreApplication.translate("SearchDialog", "Add channels", None))
self.label_7.setText(QCoreApplication.translate("SearchDialog", "Search results", None))
self.search_box.setInputMask("")
self.search_box.setText("")
Expand Down

0 comments on commit f70acfd

Please sign in to comment.