This commit is contained in:
Kovid Goyal 2011-04-17 13:41:17 -06:00
parent 7da0ce12ae
commit a68a13f75a

View File

@ -317,8 +317,7 @@ class BaseToolBar(QToolBar): # {{{
QToolBar.resizeEvent(self, ev)
style = self.get_text_style()
self.setToolButtonStyle(style)
if hasattr(self, 'd_widget'):
if hasattr(self.d_widget, 'filler'):
if hasattr(self, 'd_widget') and hasattr(self.d_widget, 'filler'):
self.d_widget.filler.setVisible(style != Qt.ToolButtonIconOnly)
def get_text_style(self):