Skip to content

Commit f392a71

Browse files
authoredJan 25, 2018
Merge pull request #6128 from DelazJ/ProcessingBatchResize
[processing] Fix cannot resize columns in batch dialog
2 parents 141be44 + 222eee4 commit f392a71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎python/plugins/processing/gui/BatchPanel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def __init__(self, parent, alg):
8989
self.btnAdvanced.toggled.connect(self.toggleAdvancedMode)
9090
self.tblParameters.horizontalHeader().sectionDoubleClicked.connect(
9191
self.fillParameterValues)
92+
self.tblParameters.horizontalHeader().resizeSections(QHeaderView.ResizeToContents)
93+
self.tblParameters.horizontalHeader().setDefaultSectionSize(250)
94+
self.tblParameters.horizontalHeader().setMinimumSectionSize(150)
9295

9396
self.initWidgets()
9497

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

134-
self.tblParameters.horizontalHeader().setResizeMode(QHeaderView.Interactive)
135-
self.tblParameters.horizontalHeader().setDefaultSectionSize(250)
136-
self.tblParameters.horizontalHeader().setMinimumSectionSize(150)
137-
self.tblParameters.horizontalHeader().setResizeMode(QHeaderView.ResizeToContents)
137+
self.tblParameters.horizontalHeader().resizeSections(QHeaderView.ResizeToContents)
138138
self.tblParameters.verticalHeader().setResizeMode(QHeaderView.ResizeToContents)
139139
self.tblParameters.horizontalHeader().setStretchLastSection(True)
140140

0 commit comments

Comments
 (0)
Please sign in to comment.