4 #include <QAbstractItemModel>
8 class EventModel : public QAbstractItemModel
12 QVariant data(const QModelIndex& index, int role) const;
13 QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
14 QModelIndex parent ( const QModelIndex & index ) const;
15 int columnCount ( const QModelIndex & parent = QModelIndex() ) const;
16 int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
21 Group(const QString & title,
22 int firstEventIndex) :
25 mFirstEventIndex(firstEventIndex),
35 void createTimeGroups();
40 QHash<int, int> mParents;
43 #endif // EVENTMODEL_H