aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/treeview
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for test filesLucie Gérard2024-02-274-4/+4
| | | | | | | | | | | | | | According to QUIP-18 [1], all test files should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I26d72e8de04d4c7c57b3b7838af5d033265de5ba Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Test QFileSystemModel with no icon providerShawn Rutledge2024-02-021-0/+1
| | | | | | Task-number: QTBUG-99178 Change-Id: If96c07d173f676f5e88e1500e05b7fc2ca49e4c4 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* manual test, treeview: add a SelectionRectangleRichard Moe Gustavsen2024-01-092-1/+17
| | | | | | | | Add a SelectionRectangle to the manual test, so that it's possible to test mouse selections on a treeview. Change-Id: Id8d224af4b243b3598aaa06ed81a4420314cfe7e Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
* TreeView: add support for setting a root indexRichard Moe Gustavsen2023-05-241-16/+16
| | | | | | | | | | | | | This patch will let you set a root index in TreeView. This can be used to only show a branch of the tree model. [ChangeLog][Quick][TreeView] You can now set a rootIndex in TreeView, to only show a branch of the tree model. Fixes: QTBUG-108541 Change-Id: I1f51d01e0353eeae5d1b08400cb95b306d49f1a3 Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* QQQuickTreeView: double expand from TreeView, not TreeViewDelegateRichard Moe Gustavsen2022-12-091-4/+0
| | | | | | | | | | | | | | | | We should ideally implement as much mouse logic as possible outside the delegate. This will make it easier to implement custom delegates, since you would then only have to care about the visuals, and not the mouse logic. Therefore, move the doubleTap-to-toggle-expanded logic out of TreeViewDelegate, and into TreeView, for all custom delegates to enjoy. Change-Id: I01f49252d35fed033f162d7bab47478abefe73d1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* QQuickTreeViewDelegate: implement edit delegatesRichard Moe Gustavsen2022-12-083-0/+9
| | | | | | | | | | | | This patch will implement a default edit delegate for the TreeViewDelegates, for all our styles. [ChangeLog][Controls] TreeViewDelegate got support for editing nodes in the tree. Change-Id: Iec5936e4439770586837daa3b8045482b75a15f2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-09-071-1/+1
| | | | | | | Task-number: QTBUG-105718 Change-Id: Id89ed14990804a5024183e75382cc539d4293da1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* CMake: Don't use PUBLIC_LIBRARIES for tests and test helpersAlexandru Croitor2022-07-281-2/+2
| | | | | Change-Id: I1cd769f85d5f82c43639d6787d98e536619249e6 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-081-0/+3
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I72c89a98c42bbc9234d8495e9e503bec81d11037 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-115-183/+9
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I63563bbeb6f60f89d2c99660400dca7fab78a294 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* QQuickTreeView: add expandToIndex()Richard Moe Gustavsen2022-02-181-0/+21
| | | | | | | | | | | Add a function that lets you expand the tree recursively from an index in the model, and all the way up to the root. [ChangeLog][QtQuick] New function "expandToIndex()" has been added to TreeView. Change-Id: I063ef698e37f44730438e1638d3b7c1b4edaa0d0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* TreeViewDelegate: allow app to add custom pointer handlersRichard Moe Gustavsen2022-02-101-6/+9
| | | | | | | | | | | | | | As it stood, it was not possible to add custom pointer handlers to a TreeViewDelegate, to e.g do an expandRecursive() if using the right mouse button, or holding down ctrl during a click. This patch will change this, so that we only perform the default collapse/expand operations when using a plain left (double) click, and ignore the event otherwise. Pick-to: 6.3 Change-Id: Ifbdf0903158b65c50d0e36e98ab7e48efaa3e3ab Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* controls: add TreeViewDelegateRichard Moe Gustavsen2021-12-094-37/+146
| | | | | | | | | | | | | | | | | This patch adds TreeViewDelegate to Controls. TreeViewDelegate is a ready-made delegate that can be assigned to TreeView. It takes care of drawing the tree using the style, and can be used directly without the need for customization. It implements all the required properties set by TreeView, and offers in addition a small API that lets the developer change the indicator and the label. [ChangeLog][Controls] New delegate added: TreeViewDelegate Change-Id: I50fbc059afbc2b896d23d9d59717c8571e94bae6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* quick: add qquicktreeviewRichard Moe Gustavsen2021-12-045-0/+530
This patch adds TreeView to Qt Quick. It is more or less a copy from the TreeView in Marketplace, but with some modifications to make it more equal to the already existing TableView, ListView, and GridView. [ChangeLog][Item Views] A new view is added: TreeView Fixes: QTBUG-61630 Change-Id: Ibb9d22cf9c9df021e77d03287872134c2682682a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>