homescreenapp/stateplugins/hsapplibrarystateplugin/tsrc/inc/t_hsproxymodeltestmockmodel.h
equal
deleted
inserted
replaced
30 HsMenuItemModel(CaQuery()), |
30 HsMenuItemModel(CaQuery()), |
31 mEntryId(entryId) {} |
31 mEntryId(entryId) {} |
32 |
32 |
33 virtual QModelIndex index(int, int, |
33 virtual QModelIndex index(int, int, |
34 const QModelIndex &parent = QModelIndex()) const { |
34 const QModelIndex &parent = QModelIndex()) const { |
35 Q_UNUSED(parent); |
35 Q_UNUSED(parent); |
36 return QModelIndex(); |
36 return QModelIndex(); |
37 } |
37 } |
38 virtual QVariant data(const QModelIndex &, |
38 virtual QVariant data(const QModelIndex &, |
39 int role = Qt::DisplayRole) const { |
39 int role = Qt::DisplayRole) const { |
40 Q_UNUSED(role); |
40 Q_UNUSED(role); |
41 return QVariant(mEntryId); |
41 return QVariant(mEntryId); |
42 } |
42 } |
43 |
43 |
44 const CaEntry *entry(const QModelIndex &index) const; |
44 const CaEntry *entry(const QModelIndex &index) const; |
45 |
45 |
46 private: |
46 private: |
47 |
47 |
48 int mEntryId; |
48 int mEntryId; |
49 }; |
49 }; |
50 |
50 |
51 |
|
52 #endif |
51 #endif |