Changeset View
Changeset View
Standalone View
Standalone View
src/presentation/availablepagesmodel.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 50 | explicit AvailablePagesModel(const Domain::DataSourceQueries::Ptr &dataSourceQueries, | |||
---|---|---|---|---|---|
55 | const Domain::TaskQueries::Ptr &taskQueries, | 55 | const Domain::TaskQueries::Ptr &taskQueries, | ||
56 | const Domain::TaskRepository::Ptr &taskRepository, | 56 | const Domain::TaskRepository::Ptr &taskRepository, | ||
57 | QObject *parent = nullptr); | 57 | QObject *parent = nullptr); | ||
58 | 58 | | |||
59 | QAbstractItemModel *pageListModel(); | 59 | QAbstractItemModel *pageListModel(); | ||
60 | 60 | | |||
61 | Q_SCRIPTABLE QObject *createPageForIndex(const QModelIndex &index); | 61 | Q_SCRIPTABLE QObject *createPageForIndex(const QModelIndex &index); | ||
62 | 62 | | |||
63 | public slots: | ||||
63 | void addProject(const QString &name, const Domain::DataSource::Ptr &source); | 64 | void addProject(const QString &name, const Domain::DataSource::Ptr &source); | ||
64 | void addContext(const QString &name); | 65 | void addContext(const QString &name); | ||
65 | void removeItem(const QModelIndex &index); | 66 | void removeItem(const QModelIndex &index); | ||
66 | 67 | | |||
67 | private: | 68 | private: | ||
68 | QAbstractItemModel *createPageListModel(); | 69 | QAbstractItemModel *createPageListModel(); | ||
69 | 70 | | |||
70 | QAbstractItemModel *m_pageListModel; | 71 | QAbstractItemModel *m_pageListModel; | ||
Show All 23 Lines |