Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
add single item to matrix parameter by default
- Loading branch information
Showing
with
4 additions
and
1 deletion.
-
+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) |
|
|
|
|
|