@@ -27,6 +27,7 @@ class FakeIndicatorsModel : public QAbstractListModel
28 Q_ENUMS(Roles)
28 Q_ENUMS(Roles)
29 Q_PROPERTY(int count READ count NOTIFY countChanged)
29 Q_PROPERTY(int count READ count NOTIFY countChanged)
30+ Q_PROPERTY(QString profile READ profile WRITE setProfile NOTIFY profileChanged)
32 FakeIndicatorsModel(QObject *parent=0);
33 FakeIndicatorsModel(QObject *parent=0);
@@ -39,6 +40,9 @@ public:
40 Q_INVOKABLE QVariant data(int row, int role) const;
41 Q_INVOKABLE QVariant data(int row, int role) const;
43+ QString profile() const;
44+ void setProfile(const QString& profile);
42 /* QAbstractItemModel */
46 /* QAbstractItemModel */
43 QHash<int, QByteArray> roleNames() const;
47 QHash<int, QByteArray> roleNames() const;
44 int columnCount(const QModelIndex &parent = QModelIndex()) const;
48 int columnCount(const QModelIndex &parent = QModelIndex()) const;
@@ -48,12 +52,14 @@ public:
50 void countChanged();
54 void countChanged();
55+ void profileChanged();
53 int count() const;
58 int count() const;
55 typedef QHash<int, QVariant> Indicator;
60 typedef QHash<int, QVariant> Indicator;
56 QList<Indicator*> m_indicators;
61 QList<Indicator*> m_indicators;
59#endif // FAKE_INDICATORSMODEL_H
65#endif // FAKE_INDICATORSMODEL_H