Skip to content
Permalink
Browse files

[processing] Fix cannot resize columns in batch dialog

Fixes #17227
  • Loading branch information
nyalldawson committed Nov 10, 2017
1 parent a23f315 commit 797437823c407c88c23c0f38211b4524098207ba
Showing with 5 additions and 4 deletions.
  1. +5 −4 python/plugins/processing/gui/BatchPanel.py
@@ -87,6 +87,10 @@ def __init__(self, parent, alg):
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()

def layerRegistryChanged(self):
@@ -133,10 +137,7 @@ def initWidgets(self):
for i in range(2):
self.addRow()

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

0 comments on commit 7974378

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