1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#pragma once #include <QAbstractListModel> #include <QList> namespace Swift { class EventModel : public QAbstractListModel { Q_OBJECT public: EventModel(); ~EventModel(); QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; int rowCount(const QModelIndex& parent = QModelIndex()) const; }; }