~unity-team/unity8/slim-greeter

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Indicators/fakeindicatorsmodel.h

  • Committer: Michael Terry
  • Date: 2015-02-12 15:45:21 UTC
  • mfrom: (1432.1.178 unity8)
  • Revision ID: michael.terry@canonical.com-20150212154521-1qpg3t501ljj88lj
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    Q_OBJECT
28
28
    Q_ENUMS(Roles)
29
29
    Q_PROPERTY(int count READ count NOTIFY countChanged)
 
30
    Q_PROPERTY(QString profile READ profile WRITE setProfile NOTIFY profileChanged)
30
31
    Q_PROPERTY(QVariant modelData READ modelData WRITE setModelData NOTIFY modelDataChanged)
 
32
 
31
33
public:
32
34
 
33
35
    FakeIndicatorsModel(QObject *parent=0);
42
44
 
43
45
    Q_INVOKABLE QVariant data(int row, int role) const;
44
46
 
 
47
    QString profile() const;
 
48
    void setProfile(const QString& profile);
45
49
    void setModelData(const QVariant& data);
46
50
    QVariant modelData() const { return m_modelData; }
47
51
 
54
58
 
55
59
Q_SIGNALS:
56
60
    void countChanged();
 
61
    void profileChanged();
57
62
    void modelDataChanged();
58
63
 
59
64
private:
60
65
    int count() const;
61
66
 
 
67
    QString m_profile;
62
68
    QVariant m_modelData;
63
69
};
64
70