Commit 3b21583
QRMA: unconstify root index member for tree adapters
While only set during construction, making it const breaks assignment.
Add a test case that implement a search algorithm that finds a matching
row within a tree hierarchy. For that to work (withing using an
expensive recursive implementation) we need an assignment operator.
Change-Id: I52c3504acbd9a5196777c952e69b177de9abcddd
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
(cherry picked from commit 4d7dfcf)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>1 parent 73a97ee commit 3b21583
File tree
2 files changed
+25
-1
lines changed- src/corelib/itemmodels
- tests/auto/corelib/itemmodels/qrangemodeladapter
2 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
2038 | 2039 | | |
2039 | 2040 | | |
2040 | 2041 | | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2041 | 2065 | | |
2042 | 2066 | | |
2043 | 2067 | | |
| |||
0 commit comments