Skip to content
Permalink
Browse files

add single item to matrix parameter by default

  • Loading branch information
alexbruy authored and nyalldawson committed May 8, 2018
1 parent 18f3151 commit 0046b9f82409bffec4385ee1bb7111347f41a88f
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/gui/matrixmodelerwidget.py
@@ -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)

0 comments on commit 0046b9f

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