Code review comment for lp:~zsombi/ubuntu-ui-toolkit/76-refactoring

Revision history for this message
Zsombor Egri (zsombi) wrote :

> 2459 ListItem {
> 2460 Label {
> 2461 + id: label2
> 2462 anchors.fill: parent
> 2463 - text: "Another standalone ListItem"
> 2464 + text: "Another standalone ListItem\nStarted with
> custom style, reset to theme style on first click"
> 2465 }
> 2466 leadingActions: testItem.leadingActions
> 2467 trailingActions: ListItemActions {
> 2468 actions: leading.actions
> 2469 }
> 2470 + style: ListItemStyle {}
> 2471 + onClicked: { style = undefined; label2.text = "Another
> standalone ListItem" }
> 2472 }
>
> This example would be more interesting if the custom style did something. Now
> it is basically an Item.

Perhaps. I did not wanted to deal with any complicated there, it is enough to see that it doesn't do anything if nothing is set.

« Back to merge proposal