Skip to content

Commit

Permalink
[processing] couple of fixes for matrix parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and nyalldawson committed May 11, 2018
1 parent bb0fecc commit 18f3151
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/gui/matrixmodelerwidget.py
Expand Up @@ -122,7 +122,7 @@ def headers(self):
headers = []
model = self.tblView.model()
for i in range(model.columnCount()):
headers.append(model.headerData(i, Qt.Horizontal))
headers.append(str(model.headerData(i, Qt.Horizontal)))

return headers

Expand All @@ -133,5 +133,5 @@ def setHeaders(self, headers):
def fixedRows(self):
return self.chkFixedRows.isChecked()

def setFixedRows(self):
self.chkFixedRows.setChecked(True)
def setFixedRows(self, fixedRows):
self.chkFixedRows.setChecked(fixedRows)
3 changes: 3 additions & 0 deletions python/plugins/processing/ui/matrixmodelerwidgetbase.ui
Expand Up @@ -28,6 +28,9 @@
</property>
<item row="0" column="0" rowspan="8">
<widget class="QTableView" name="tblView">
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
Expand Down

0 comments on commit 18f3151

Please sign in to comment.