Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 cfa1803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/ScriptEditorDialog.py
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -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))
Expand Down

0 comments on commit cfa1803

Please sign in to comment.