Skip to content

Commit

Permalink
Merge pull request #6128 from DelazJ/ProcessingBatchResize
Browse files Browse the repository at this point in the history
[processing] Fix cannot resize columns in batch dialog
  • Loading branch information
slarosa committed Jan 25, 2018
2 parents 141be44 + 222eee4 commit f392a71
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 f392a71

Please sign in to comment.