Skip to content

Commit

Permalink
add single item to matrix parameter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and nyalldawson committed May 11, 2018
1 parent 18f3151 commit 0046b9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/gui/matrixmodelerwidget.py
Expand Up @@ -57,7 +57,10 @@ def __init__(self, parent=None):
self.btnRemoveRow.clicked.connect(self.removeRows)
self.btnClear.clicked.connect(self.clearTable)

self.tblView.setModel(QStandardItemModel())
items = [QStandardItem('0')]
model = QStandardItemModel()
model.appendColumn(items)
self.tblView.setModel(model)

self.tblView.horizontalHeader().sectionDoubleClicked.connect(self.changeHeader)

Expand Down

0 comments on commit 0046b9f

Please sign in to comment.