aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/tableview/tablemodel/tablemodel.pro
Commit message (Collapse)AuthorAgeFilesLines
* Rename tablemodel manual test to "form", move into tablemodel subdirMitch Curtis2019-02-131-10/+2
| | | | | | | | In preparation for adding more TableModel-related manual tests. We need these to ensure that we support different use cases. Change-Id: Ib771b513a3dd62a372335beb1e97a8c946708ec2 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Add TableModelMitch Curtis2019-02-081-0/+10
This is a QML type that can be used as a model for the new TableView. The model data is set by assigning a JavaScript array to the rows property (or by calling appendRow()). After data has been assigned for the first time, the available columns and roles are fixed for the lifetime of the model, as opposed to ListModel where the dynamicRoles property could be used. This is done intentionally to simplify the code. The API is designed to be familiar to users of ListModel: - To add new rows, use appendRow() and insertRow(). - To modify existing rows, use setRow(), moveRow(), removeRow(), and clear(). [ChangeLog][Qt Labs QML Models] Added the TableModel QML type, a JavaScript-based model for the new TableView. Fixes: QTBUG-70334 Change-Id: I55387a08b122227c5624f78af3d450b7695d974a Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>