Changed plugin search clear ICON

This commit is contained in:
John Morris 2019-10-29 16:13:18 +00:00 committed by Tomas Groth
parent 4408797e52
commit 5677cf6a40
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@ class UiIcons(metaclass=Singleton):
'authentication': {'icon': 'fa.exclamation-triangle', 'attr': 'red'}, 'authentication': {'icon': 'fa.exclamation-triangle', 'attr': 'red'},
'address': {'icon': 'fa.book'}, 'address': {'icon': 'fa.book'},
'back': {'icon': 'fa.step-backward'}, 'back': {'icon': 'fa.step-backward'},
'backspace': {'icon': 'mdi.backspace-outline'},
'bible': {'icon': 'fa.book'}, 'bible': {'icon': 'fa.book'},
'blank': {'icon': 'fa.times-circle'}, 'blank': {'icon': 'fa.times-circle'},
'blank_theme': {'icon': 'fa.file-image-o'}, 'blank_theme': {'icon': 'fa.file-image-o'},

View File

@ -64,7 +64,7 @@ class SearchEdit(QtWidgets.QLineEdit):
self.settings_section = settings_section self.settings_section = settings_section
self._current_search_type = -1 self._current_search_type = -1
self.clear_button = QtWidgets.QToolButton(self) self.clear_button = QtWidgets.QToolButton(self)
self.clear_button.setIcon(UiIcons().shortcuts) self.clear_button.setIcon(UiIcons().backspace)
self.clear_button.setCursor(QtCore.Qt.ArrowCursor) self.clear_button.setCursor(QtCore.Qt.ArrowCursor)
self.clear_button.setStyleSheet('QToolButton { border: none; padding: 0px; }') self.clear_button.setStyleSheet('QToolButton { border: none; padding: 0px; }')
self.clear_button.resize(18, 18) self.clear_button.resize(18, 18)