Skip to content
Permalink
Browse files
Fix incorrect icon size in processing windows
Well... kind of. It fixes the toolbar button size, but for some
reason the actual icon content itself isn't being resized. I can't
work out why this is...
  • Loading branch information
nyalldawson committed Jul 8, 2017
1 parent a3fdb95 commit cfa18039af80695218c95d9ce60fc6207a31686f
@@ -68,7 +68,7 @@ def __init__(self, algType, alg):
self.restoreState(settings.value("/Processing/stateScriptEditor", QByteArray()))
self.restoreGeometry(settings.value("/Processing/geometryScriptEditor", QByteArray()))

iconSize = int(settings.value("iconsize", 24))
iconSize = int(settings.value("IconSize", 24))
self.toolBar.setIconSize(QSize(iconSize, iconSize))

self.actionOpenScript.setIcon(
@@ -217,7 +217,7 @@ def _mimeDataAlgorithm(items):
ctrlEquals.activated.connect(self.zoomIn)

try:
iconSize = int(settings.value("iconsize", 24))
iconSize = int(settings.value("IconSize", 24))
except:
iconSize = 24
self.mToolbar.setIconSize(QSize(iconSize, iconSize))

0 comments on commit cfa1803

Please sign in to comment.