It allows us to reach the context of the delegate from our delegate component.
Details
Details
- Reviewers
mart - Group Reviewers
Kirigami - Commits
- R169:815a49c493fd: Introduce a DelegateRecycler attached object
Now I can call highlighted: Kirigami.DelegateRecycler.recycler.ListView.isCurrentItem.
Diff Detail
Diff Detail
- Repository
- R169 Kirigami
- Branch
- arcpatch-D17592
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 6107 Build 6125: arc lint + arc unit
Comment Actions
recycler should have a notify signal, because it's going to change all the time.
the delegaterecycler instances are created/destroyed all the time like normal listview delegates, and the delegates instances, those that are actually recycled, will be assigned a new recycler when actually recycled.
since is saved anyways as a context property, perhaps is better to just base off that one and taking care that's always kept up to date to the new recycler.
src/delegaterecycler.cpp | ||
---|---|---|
256 | tracking this property directly from qml will woirk as is the correct recycler, on the other hand the attached property won't, so is probably better to just have this one |