~ubuntu-sdk-team/ubuntu-ui-toolkit/dpr

« back to all changes in this revision

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

  • Committer: Gerry Boland
  • Date: 2015-07-10 11:16:39 UTC
  • mfrom: (1162.1.40 ubuntu-ui-toolkit)
  • Revision ID: gerry.boland@canonical.com-20150710111639-zoq10nk0o0roco6v
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    Q_DECLARE_PUBLIC(UCStyledItemBase)
30
30
public:
31
31
 
32
 
    enum StyleLoadingMethod {
33
 
        Immediate,
34
 
        DelayTillCompleted,
35
 
        DelayTillExplicitRequested
36
 
    };
37
 
 
38
32
    static UCStyledItemBasePrivate *get(UCStyledItemBase *item) {
39
33
        return item->d_func();
40
34
    }
41
35
 
 
36
    void _q_reloadStyle();
42
37
    void _q_styleResized();
43
38
    void _q_ascendantChanged(QQuickItem *ascendant);
44
39
    void _q_parentStyleChanged();
52
47
 
53
48
    QQmlComponent *style() const;
54
49
    void setStyle(QQmlComponent *style);
 
50
    void resetStyle();
55
51
    QQuickItem *styleInstance();
56
52
 
 
53
    QString styleName() const;
 
54
    void setStyleName(const QString &name);
 
55
 
57
56
    virtual void preStyleChanged();
58
 
    virtual void postStyleChanged();
59
 
    virtual void loadStyleItem(bool animated = true);
 
57
    virtual void postStyleChanged() {}
 
58
    virtual bool loadStyleItem(bool animated = true);
60
59
 
61
60
    UCTheme *getTheme() const;
62
61
    void setTheme(UCTheme *theme);
67
66
 
68
67
public:
69
68
    bool activeFocusOnPress:1;
70
 
    StyleLoadingMethod styleLoadingMethod;
 
69
    QString styleDocument;
71
70
    QQmlComponent *styleComponent;
72
71
    QPointer<QQmlContext> styleItemContext;
73
72
    QQuickItem *styleItem;