Skip to content
Permalink
Browse files

Merge pull request #6128 from DelazJ/ProcessingBatchResize

[processing] Fix cannot resize columns in batch dialog
  • Loading branch information
slarosa committed Jan 25, 2018
2 parents 141be44 + 222eee4 commit f392a7175b8d64d733d967abce28e43cbb72052e
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 f392a71

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