summaryrefslogtreecommitdiff
path: root/tests/auto/controls/data/tst_treeview.qml
Commit message (Collapse)AuthorAgeFilesLines
* Stabilise flaky testDimitrios Apostolou2019-06-261-25/+32
| | | | | | | | | | | | | Spread small delays in the test to mitigate severe flakiness on MacOS_10_12 platform in our CI. This is not a proper fix. It is acceptable because the module is deprecated and because it should greatly improve the instability of our CI. Fixes: QTBUG-76570 Change-Id: If2d7d15dffe23c7e0644b233e7757c04574c89d4 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* Unskip test of fixed bugAllan Sandfeld Jensen2018-11-291-1/+0
| | | | | | | | Was never unskipped after being fixed Task-number: QTBUG-47523 Change-Id: Ibb193b45a73ca627ab3db7db8d1bf7b98f9ee8b4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* TreeView: avoid skipping some tests now that it has touchscreen supportShawn Rutledge2018-01-021-18/+0
| | | | | | | Task-number: QTBUG-47243 Change-Id: I19d06df099a9da253059d2d0aa4a290b41a17ada Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Revert "tests: skip several tests in tst_treeview.qml"Liang Qi2017-02-221-8/+0
| | | | | | | | | | This reverts commit cdd589d53c8f2f03c868cb618baf7f55956ebcb6. It got fixed by qtdeclarative 2a15f6c5. Task-number: QTBUG-49360 Change-Id: I0ad7f30c0bc442510a0918f0a61e64e966dd6676 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* tests: skip several tests in tst_treeview.qmlLiang Qi2017-02-171-0/+8
| | | | | | | | Didn't find correct BLACKLIST way yet. Task-number: QTBUG-49360 Change-Id: I43ff4ccfd6f0b48088925a72ed8e8e6232607b78 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-101-0/+1
|\ | | | | | | | | | | | | | | Conflicts: examples/quickcontrols/extras/flat/main.cpp src/controls/Private/qquickcontrolsettings.cpp Change-Id: I9eb9342a2ee994611f3cb18daab6dd89eb924ccc
| * Skipping quickcontrols: Test_TreeView::test_indexAt()Milla Pohjanheimo2016-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | Because of bug QTBUG-47523 we need to skip this test until it is fixed properly. Remove the 'skip' after the bug is fixed. Task-number: QTBUG-47523 Change-Id: I4ba514ac7cc38026ced16f8e12bea6e8ac329818 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@theqtcompany.com>
* | Unify license header usageAntti Kokko2016-02-041-3/+13
|/ | | | | | | Updated BSD license headers Change-Id: I73d67dbc6dbbe7c58d2b9c301b46fb6163243095 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Fix tst_treeviewJ-P Nurmi2015-11-241-2/+2
| | | | | Change-Id: I662eea96b72043d06fe94707e77a9ead5a951e3d Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Skip controls tests when touch screen is present.Friedemann Kleint2015-11-171-0/+23
| | | | | | | Task-number: QTBUG-49359 Task-number: QTBUG-49360 Change-Id: I96ec6d46de189ec396ef26c0d059c65360da4ec0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* TreeView auto-test: Harden test_indexAt()Gabriel de Dietrich2015-08-191-1/+13
| | | | | | | | Also, print extra information when the test is about to fail since it has proven to be a bit flaky lately. Change-Id: I4042cb99eb2b3fcb3677de63cd425d0ade4bdc34 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* TreeView: Track model indexes during selectionGabriel de Dietrich2015-07-041-0/+29
| | | | | | | | | | | | | | | | | | | | As we keep track of the previous user-selected row, it can happen that that row is no longer part of the TreeModelAdaptor items if the user collapses it or any of its ancestors (collapsing a node doesn't update the current selection). This will result on the row index pointing to the wrong entry in the model (or a completely invalid one). Instead, we now track the selection with QModelIndexes making it more robust to branch expansion and collapse in the view. We'll still need to account for model changes which means that, in the future, we should invalidate the previous user-selected item. Change-Id: I54ba2582e65515eef95d5f8ad755a8c68568d7ad Task-number: QTBUG-46891 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* TreeView auto-test: Remove workaround, use Array APIGabriel de Dietrich2015-05-291-18/+11
| | | | | Change-Id: I64309a369065a4d91107527d29c8dfb03dcd738d Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Tests: Remove redundant calls to destroy()Caroline Chao2015-05-041-19/+0
| | | | | | | | In tst_treeview.qml, destroy() is called in the cleanup() function so it is not necessary to have it in the test functions as well. Change-Id: I580e78c966fa162be23c36c43b59cd6226688941 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* TreeView: Add indexAt() functionGabriel de Dietrich2015-04-161-0/+57
| | | | | | | Change-Id: I6a8105d074fd71d9d0dff35d07ba1622093e1d4b Task-number: QTBUG-45351 Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Port and re-enable tests using the selectedIndexes property.Stephen Kelly2015-03-281-21/+21
| | | | | Change-Id: I3ac45d50a5ebf75801e10d64b0661c0809e1e9a5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Temporarily disable tests which use selectedIndexes()Stephen Kelly2015-03-251-4/+4
| | | | | | | It is to become a Q_PROPERTY. Change-Id: Ie11b2c0c7884cd13bee24c30dd474aece09ede4f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Make TreeView auto-tests pass pending list to array changesGabriel de Dietrich2015-03-201-11/+18
| | | | | | | | | | This should be updated once the two following patches are merged, https://codereview.qt-project.org/107687 https://codereview.qt-project.org/107973 Change-Id: I89a9ee29f4234a489971463e4035d1bc9863d677 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* BSD license for QML code in testsJ-P Nurmi2015-03-061-22/+26
| | | | | | Change-Id: Ie45c9b8d5a5d7f92e4b835473b0c76e3a83998b5 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* tst_treeview: Enable tests using mouse double clickCaroline Chao2015-03-031-24/+25
| | | | | Change-Id: I721dbda1ef45f78a178d7d901dd530039cb66906 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* TreeView: Always update selection current indexGabriel de Dietrich2015-02-251-19/+4
| | | | | | | This gets us closer to the classic item views behavior. Change-Id: I1f9ccdaa1c91e807a8726715a520dd0006c6e988 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Introducing TreeViewGabriel de Dietrich2015-02-131-0/+761
The TreeView, as currently implemented, extends the TableView by adding support for hierarchical models. In the broad sense, it remains a list view with columns, like TableView. The main architecture is based on TreeModelAdaptor, that wraps the hierarchical model. It keeps track of which items are expanded or collapsed, and also relays model changes to the view. (TreeModelAdaptor is a private type and should be considered as an implementation detail.) The TreeView only supports QAbstractItemModels for the time being, and, just like TableView, relies on roles to pass the data to the view. This also means that model columns are not supported. Selection is supported by ItemSelectionModel which exposes part of the API of QItemSelectionModel. For this, support has been added for QModelIndex and related classes. This requires importing QtQml.Models 2.2 should an actual usage of the TreeView use selection. In the same way, TreeViewStyle currently extends TableViewStyle with the relevant features, like branch indicator. [ChangeLog][QtQuick.Controls] Introducing TreeView With-Help-From: Caroline Chao <caroline.chao@theqtcompany.com> Change-Id: Id3dba240a732744571e4a646b7b98678ab522da6 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>