~josephjamesmills/ubuntu-ui-toolkit/QtCreator_Help_Plugins

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/plugin/itemstyleattached.h

[theming] Building selector for a styled item moved into Selector class.

Previous functionality present in ItemStyleAttachedPrivate::updateStyleSelector() was moved into Selector class, class being responsible of building up the selectors from different sources.

A selector can now be built up from a QQuickItem, in which case the item becomes the owner of the selector. Any additional update on the selector made by calling update() method will fetch the latest information from the owner and update the last node of the selector.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
    Q_DECLARE_PRIVATE(ItemStyleAttached)
65
65
    QScopedPointer<ItemStyleAttachedPrivate> d_ptr;
66
66
    friend class ThemeEnginePrivate;
 
67
    friend class SelectorNode;
67
68
 
68
69
    Q_PRIVATE_SLOT(d_func(), void _q_attacheePropertyChanged())
69
70
    Q_PRIVATE_SLOT(d_func(), void _q_reapplyStyling(QQuickItem *))