~nick-dedekind/unity8/indicator.submenu-reinit

« back to all changes in this revision

Viewing changes to plugins/Unity/Indicators/unitymenumodelstack.h

  • Committer: Nick Dedekind
  • Date: 2013-09-27 10:58:50 UTC
  • Revision ID: nicholas.dedekind@gmail.com-20130927105850-bn63jchxqsij63d0
Added count to unitymenumodelstack

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    Q_OBJECT
39
39
    Q_PROPERTY(UnityMenuModel* head READ head WRITE setHead NOTIFY headChanged)
40
40
    Q_PROPERTY(UnityMenuModel* tail READ tail NOTIFY tailChanged)
 
41
    Q_PROPERTY(int count READ count NOTIFY countChanged)
41
42
public:
42
43
    UnityMenuModelStack(QObject*parent=NULL);
43
44
    ~UnityMenuModelStack();
47
48
 
48
49
    UnityMenuModel* tail() const;
49
50
 
 
51
    int count() const;
 
52
 
50
53
    Q_INVOKABLE void push(UnityMenuModel* model, int menuIndex);
51
54
    Q_INVOKABLE UnityMenuModel* pop();
52
55
 
53
56
Q_SIGNALS:
54
57
    void headChanged(UnityMenuModel* head);
55
58
    void tailChanged(UnityMenuModel* tail);
 
59
    void countChanged(int count);
56
60
 
57
61
private Q_SLOTS:
58
62
    void onRemove();