Skip to content
Permalink
Browse files

Fix failing tests

  • Loading branch information
nyalldawson committed Aug 6, 2017
1 parent d6e2985 commit 2d88a4d73a0ef417d0c79a134f4e7a9f4ff56a5b
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/console/console.py
@@ -162,6 +162,8 @@ def __init__(self, parent=None):
# Hide search widget on start up
self.widgetFind.hide()

icon_size = iface.iconSize(dockedToolbar=True) if iface else QSize(16, 16)

sizes = self.splitter.sizes()
self.splitter.setSizes(sizes)

@@ -351,7 +353,7 @@ def __init__(self, parent=None):
self.toolBar.setFocusPolicy(Qt.NoFocus)
self.toolBar.setContextMenuPolicy(Qt.DefaultContextMenu)
self.toolBar.setLayoutDirection(Qt.LeftToRight)
self.toolBar.setIconSize(iface.iconSize(dockedToolbar=True))
self.toolBar.setIconSize(icon_size)
self.toolBar.setMovable(False)
self.toolBar.setFloatable(False)
self.toolBar.addAction(self.clearButton)
@@ -367,7 +369,7 @@ def __init__(self, parent=None):
self.toolBarEditor.setFocusPolicy(Qt.NoFocus)
self.toolBarEditor.setContextMenuPolicy(Qt.DefaultContextMenu)
self.toolBarEditor.setLayoutDirection(Qt.LeftToRight)
self.toolBarEditor.setIconSize(iface.iconSize(dockedToolbar=True))
self.toolBarEditor.setIconSize(icon_size)
self.toolBarEditor.setMovable(False)
self.toolBarEditor.setFloatable(False)
self.toolBarEditor.addAction(self.openFileButton)

0 comments on commit 2d88a4d

Please sign in to comment.
You can’t perform that action at this time.