-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.10
-
5
-
bb09490ab (dev), 097d499f0 (6.10)
QmlTableModel has the following API to insert rows at a certain point:
Q_INVOKABLE void insertRow(int rowIndex, const QVariant &row);
QmlTreeModel is missing this API. The closest is
Q_INVOKABLE void appendRow(QModelIndex index, const QVariant &row);
where the row is appended to the end of the children of index. It would be good to rename the parameter index to parent to make clear where the new row is appended.
Found in header review.
For Gerrit Dashboard: QTBUG-138704 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
663901,4 | Add insertRow() to QmlTreeModel | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
663685,6 | Change parameter name in QmlTreeModel::appendRow | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
664461,2 | Change parameter name in QmlTreeModel::appendRow | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |