forked from openlp/openlp
- Changed the Clear button to use QToolButton instead of QPushButton.
(Fixes the issue where the clear button is larger than the lock button).
This commit is contained in:
parent
55ff6d6ff1
commit
3937fbccf9
@ -160,7 +160,8 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
search_button_layout = QtWidgets.QHBoxLayout()
|
search_button_layout = QtWidgets.QHBoxLayout()
|
||||||
search_button_layout.setObjectName(prefix + 'search_button_layout')
|
search_button_layout.setObjectName(prefix + 'search_button_layout')
|
||||||
search_button_layout.addStretch()
|
search_button_layout.addStretch()
|
||||||
clear_button = QtWidgets.QPushButton(tab)
|
# Note: If we use QPushButton instead of the QToolButton, the icon will be larger than the Lock icon.
|
||||||
|
clear_button = QtWidgets.QToolButton(tab)
|
||||||
clear_button.setIcon(self.clear_icon)
|
clear_button.setIcon(self.clear_icon)
|
||||||
clear_button.setObjectName(prefix + 'ClearButton')
|
clear_button.setObjectName(prefix + 'ClearButton')
|
||||||
lock_button = QtWidgets.QToolButton(tab)
|
lock_button = QtWidgets.QToolButton(tab)
|
||||||
|
Loading…
Reference in New Issue
Block a user