Added dialog to add events to object

This commit is contained in:
feedc0de committed 2022-01-13 14:41:17 +01:00
1 parent 7fdcd5386d
commit 8d45958d45
22 files changed
+474 -124

No files matched your search

+11 -1
View File
@@ -2,13 +2,23 @@
#include <QAbstractListModel>
#include <map>
#include "projectcontainer.h"
class ObjectEventsModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit ObjectEventsModel(QObject *parent = nullptr);
explicit ObjectEventsModel(std::map<Object::EventType, QString> &events, QObject *parent = nullptr);
int rowCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
using QAbstractListModel::beginResetModel;
using QAbstractListModel::endResetModel;
private:
std::map<Object::EventType, QString> &m_events;
};