Skip to content
Permalink
Browse files

[processing] Fix cannot resize columns in batch dialog

Fixes #17819
Cherry-picked from 7974378
  • Loading branch information
DelazJ committed Jan 22, 2018
1 parent d473c30 commit 222eee437c5a91f9ac7ca6de638053d5d9282125
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/gui/BatchPanel.py
@@ -89,6 +89,9 @@ def __init__(self, parent, alg):
self.btnAdvanced.toggled.connect(self.toggleAdvancedMode)
self.tblParameters.horizontalHeader().sectionDoubleClicked.connect(
self.fillParameterValues)
self.tblParameters.horizontalHeader().resizeSections(QHeaderView.ResizeToContents)
self.tblParameters.horizontalHeader().setDefaultSectionSize(250)
self.tblParameters.horizontalHeader().setMinimumSectionSize(150)

self.initWidgets()

@@ -131,10 +134,7 @@ def initWidgets(self):
for i in xrange(3):
self.addRow()

self.tblParameters.horizontalHeader().setResizeMode(QHeaderView.Interactive)
self.tblParameters.horizontalHeader().setDefaultSectionSize(250)
self.tblParameters.horizontalHeader().setMinimumSectionSize(150)
self.tblParameters.horizontalHeader().setResizeMode(QHeaderView.ResizeToContents)
self.tblParameters.horizontalHeader().resizeSections(QHeaderView.ResizeToContents)
self.tblParameters.verticalHeader().setResizeMode(QHeaderView.ResizeToContents)
self.tblParameters.horizontalHeader().setStretchLastSection(True)

0 comments on commit 222eee4

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