mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7da0ce12ae
commit
a68a13f75a
@ -317,9 +317,8 @@ class BaseToolBar(QToolBar): # {{{
|
|||||||
QToolBar.resizeEvent(self, ev)
|
QToolBar.resizeEvent(self, ev)
|
||||||
style = self.get_text_style()
|
style = self.get_text_style()
|
||||||
self.setToolButtonStyle(style)
|
self.setToolButtonStyle(style)
|
||||||
if hasattr(self, 'd_widget'):
|
if hasattr(self, 'd_widget') and hasattr(self.d_widget, 'filler'):
|
||||||
if hasattr(self.d_widget, 'filler'):
|
self.d_widget.filler.setVisible(style != Qt.ToolButtonIconOnly)
|
||||||
self.d_widget.filler.setVisible(style != Qt.ToolButtonIconOnly)
|
|
||||||
|
|
||||||
def get_text_style(self):
|
def get_text_style(self):
|
||||||
style = Qt.ToolButtonTextUnderIcon
|
style = Qt.ToolButtonTextUnderIcon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user