Comment 1 for bug 1470951

Revision history for this message
Cris Dywan (kalikiana) wrote :

You don't actually need the old divider in the way you're suggesting. You're assuming there would be an equivalent new component when in fact the ListItem itself now provides it. I think we need to improve the documentation.

Example of a divider in the new API:

divider {
    visible: true
    colorFrom: UbuntuColors.red
    colorTo: UbuntuColors.green
}

The colors are optional, it can be as simple as

divider.visible: action != actions[actions.length - 1]

(In this example assuming an ActionSelectionPopover where the delegate has an "action" and the model is a list of Action items)