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;
17 void loadEvents(const QDate &aDate, int aConferenceId); // loads Events from the DB
22 Group(const QString & title,
23 int firstEventIndex) :
26 mFirstEventIndex(firstEventIndex),
36 void createTimeGroups();
41 QHash<int, int> mParents;
44 #endif // EVENTMODEL_H