Positioning & stacking of delegates is mostly undefined behaviour
Depending on the component design, the visuals defined in delegate may cover the entire component content. Defining contentItem property in delegate also causes re-parenting of all children of the styled component, even those which are not supposed to be.
Blueprint information
- Status:
- Complete
- Approver:
- Zoltan Balogh
- Priority:
- Undefined
- Drafter:
- Zsombor Egri
- Direction:
- Needs approval
- Assignee:
- Zsombor Egri
- Definition:
- Superseded
- Series goal:
- Accepted for raring
- Implementation:
- Unknown
- Milestone target:
- ubuntu-13.04-month-6
- Started by
- Completed by
- Zoltan Balogh
Related branches
Related bugs
Bug #1152154: [Theming] positioning & stacking of delegates is mostly undefined behaviour | Fix Released |
Sprints
Whiteboard
One solution is to provide similar approach as Qt Desktop Components have (Loader to instantiate the delegates, not the engine), or items to be styled should provide a property (e.g. “__contentItem”) so only that and its children will be re-parented into the delegate’s contentItem.
Work Items
Work items:
Investigate QtControl (former QtComponents) solution: TODO
Benchmark Loader vs. ItemStyle reparenter solution: TODO
Prototype solutions: TODO
Implement proposed solution: TODO
Dependency tree
* Blueprints in grey have been implemented.