Code review comment for lp:~zsombi/ubuntu-ui-toolkit/79-more-simplification

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

> 506 +class UCListItemDividerPrivate : public QQuickItemPrivate
>
> why inherit from QQuickItemPrivate and not QQuickItem?

Well, if you see this is the private API of the UCListItemDivider. As UCListItemDivider is derived from QQuickItem, it is recommended that its private also derives from QQuickItemPrivate to avoid duplicity of the d-pointers. In this way the UCListItem will have only one d_func() or d-pointer.

« Back to merge proposal