Merge branch 'search_icon' into 'master'

Changed plugin search clear ICON

Closes #315 and #267

See merge request openlp/openlp!58
This commit is contained in:
Tomas Groth 2019-10-29 16:13:18 +00:00
commit eda847a8db
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'},
'address': {'icon': 'fa.book'},
'back': {'icon': 'fa.step-backward'},
'backspace': {'icon': 'mdi.backspace-outline'},
'bible': {'icon': 'fa.book'},
'blank': {'icon': 'fa.times-circle'},
'blank_theme': {'icon': 'fa.file-image-o'},

View File

@ -64,7 +64,7 @@ class SearchEdit(QtWidgets.QLineEdit):
self.settings_section = settings_section
self._current_search_type = -1
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.setStyleSheet('QToolButton { border: none; padding: 0px; }')
self.clear_button.resize(18, 18)