feat(StatusQ/SubmodelProxyModel): Allow defining new proxy roles via delegateModel
component
#14390
Labels
E:Desktop Profile Showcase
Implementation of the Profile showcase
E:Desktop Qt Proxy Models Library
feature
ui-team
Milestone
Description
It would be very convenient to have possibility of creating proxy models directly from delegate model's instance instead of using SFPM's proxy roles. Moreover SFPM's proxy roles depending on submodel's content cannot be updated properly when submodel is changing.
It would add
totalBalance
role to thetokensModel
.New roles can be defined using simple pattern - properties like
xxxRole
are intended to addxxx
role to the top-level model.It's an alternative to currently used approach based on expression roles and imperative js code iterating over submodels:
Moreover this expression role based approach is not dynamic, changes in submodel don't trigger changes in a top-level model. Proposed solution, when implemented correctly, can be fully dynamic out of the box.
Depends on: #14389
The text was updated successfully, but these errors were encountered: