Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 222eee4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -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()

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 222eee4

Please sign in to comment.