[processing] couple of fixes for matrix parameter

This commit is contained in:
Alexander Bruy 2018-05-07 09:55:19 +03:00 committed by Nyall Dawson
parent bb0feccec4
commit 18f3151808
2 changed files with 6 additions and 3 deletions

View File

@ -122,7 +122,7 @@ class MatrixModelerWidget(BASE, WIDGET):
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
@ -133,5 +133,5 @@ class MatrixModelerWidget(BASE, WIDGET):
def fixedRows(self):
return self.chkFixedRows.isChecked()
def setFixedRows(self):
self.chkFixedRows.setChecked(True)
def setFixedRows(self, fixedRows):
self.chkFixedRows.setChecked(fixedRows)

View File

@ -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>