Changeset View
Changeset View
Standalone View
Standalone View
tests/units/presentation/pagemodeltest.cpp
Show All 32 Lines | |||||
33 | public: | 33 | public: | ||
34 | explicit FakePageModel(QObject *parent = Q_NULLPTR) | 34 | explicit FakePageModel(QObject *parent = Q_NULLPTR) | ||
35 | : Presentation::PageModel(parent), | 35 | : Presentation::PageModel(parent), | ||
36 | createCount(0), | 36 | createCount(0), | ||
37 | itemModel(Q_NULLPTR) | 37 | itemModel(Q_NULLPTR) | ||
38 | { | 38 | { | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | Domain::Artifact::Ptr addItem(const QString &, const QModelIndex &) { return Domain::Artifact::Ptr::create(); } | 41 | Domain::Artifact::Ptr addItem(const QString &, const QModelIndex &) override { return Domain::Artifact::Ptr::create(); } | ||
42 | void removeItem(const QModelIndex &) {} | 42 | void removeItem(const QModelIndex &) override {} | ||
43 | void promoteItem(const QModelIndex &) {} | 43 | void promoteItem(const QModelIndex &) override {} | ||
44 | 44 | | |||
45 | private: | 45 | private: | ||
46 | QAbstractItemModel *createCentralListModel() | 46 | QAbstractItemModel *createCentralListModel() override | ||
47 | { | 47 | { | ||
48 | createCount++; | 48 | createCount++; | ||
49 | itemModel = new QStringListModel(this); | 49 | itemModel = new QStringListModel(this); | ||
50 | return itemModel; | 50 | return itemModel; | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | public: | 53 | public: | ||
54 | int createCount; | 54 | int createCount; | ||
Show All 33 Lines |