aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qquicklistmodel
Commit message (Collapse)AuthorAgeFilesLines
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-011-0/+1
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: I6988c2360e9d88916311374a0c910bfc5b607439 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Remove QListModelInterface.Andrew den Exter2012-07-251-34/+25
| | | | | | | | | | Implement ListModel and XmlListModel using QAbstractListModel instead. Task-number: QTBUG-15728 Change-Id: I14e03d90883d341f4b1d89c1e9fc9dc1534fde78 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Support JS Date object in ListModel with static roles.Glenn Watson2012-06-261-0/+36
| | | | | | | | | | ListModel uses static roles by default for performance reasons. Add JS Date object to list of supported types in this mode, via implicit conversion to QDateTime. Task-number: QTBUG-24456 Change-Id: Ifaa1a8d16290e87b61239ed351a949d66a02990c Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add warning if defining a ListModel with no roles.Glenn Watson2012-06-261-0/+37
| | | | | | | | | | | When static ListElement types are declared, the role names are inferred from them at compile time. If they are all empty, it's not possible to add roles to the model, so warn the user of this case. Task-number: QTBUG-21438 Change-Id: Ib4ac30e160c44a5a57ebd1c49fccc2b3db5f0977 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Handle enum values of -1 correctly.Michael Brasser2012-06-221-0/+6
| | | | | | | | | | This was already handled correctly most places; now the remaining cases (using an enum in ListModel, and assigning an enum to an integer property) should also work correctly. Task-number: QTBUG-21679 Change-Id: Ibff13f0b94da94b18e2e3bae4aa6ba44e0fa944b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Split qquicklistmodel test into two partsMatthew Vogt2012-04-189-626/+0
| | | | | | | | | This long-running test was potentially being terminated by the test framework for simply exceeding the maximum run time. Change-Id: I7e1be44f25885ae869f05acbce3c0fb1c05f76a6 Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix leak in tst_qquicklistmodel unit testChris Adams2012-03-131-0/+2
| | | | | Change-Id: I6883f263648d425240503f6abbd358b744d68506 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Remove unneeded dependencies to QtWidgets and QtOpenGLLars Knoll2012-03-121-1/+1
| | | | | Change-Id: I43bb54524f5786a838073df8812107dda7b0d56e Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix flakiness in qquicklistmodel autotestKent Hansen2012-03-121-2/+6
| | | | | | | | | | | | The worker_remove_element test calls processEvents() before calling waitForWorker(). It's possible that the worker actually finishes during the processEvents() call. In such a situation, waitForWorker() should return right away; otherwise it would wait for 10000ms for a signal that had already emitted, and the test would fail. Change-Id: I8e98a3297cf5f360c1c405b1baa7524cc6593d81 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix crash in listmodel when data is assigned incorrectly.Glenn Watson2012-03-091-0/+14
| | | | | | | | | | If a listmodel with static role types is created, it would crash if a role was assigned a value type such as string, and then subsequently assigned an array (sub list) value from a dynamic meta object (created when using get() from JS). Change-Id: Ibfd0b0b40be13b04103b49462cfae42a5c9f9fb9 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Changed qml tests to work from install directoryKurt Korbatits2012-03-071-3/+1
| | | | | | | | | | - Changed tests to use TESTDATA - moved qqmlcontext to private test as it contains private header - added check for cross_compile option to skip when sources not available Change-Id: I0f68f58ffcb1b41b8e40a9851e3e003fe72ee2f9 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-2414-0/+1886
Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>