Changeset 969a840 for src/model/eventmodel.cpp
- Timestamp:
- 01/13/10 21:51:06 (12 years ago)
- Branches:
- master, qt5
- Children:
- 6a624f7
- Parents:
- 69393c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/model/eventmodel.cpp
r69393c0 r969a840 4 4 EventModel::EventModel() 5 5 { 6 7 loadEvents(); 6 mEvents.clear(); 8 7 } 9 8 … … 119 118 } 120 119 121 void EventModel::loadEvents( )120 void EventModel::loadEvents(const QDate &aDate, int aConferenceId) 122 121 { 123 122 mEvents.clear(); 124 123 125 mConfId = 1; // current conference selected: we have only one DB so far 126 // check for existence of conference in the DB 124 // check for existence of the conference in the DB 127 125 if(Conference::getAll().count()) 128 126 { 129 mCurrentDate = Conference::getById(mConfId).start(); 130 qDebug() << "Loading Conference Data: [" << Conference::getById(mConfId).title() << "] " << mCurrentDate; 131 mEvents = Event::getByDate(QDate(mCurrentDate.year(), mCurrentDate.month(), mCurrentDate.day()), mConfId); 127 qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate; 128 mEvents = Event::getByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId); 132 129 } 133 mEvents = Event::getByDate(QDate(mCurrentDate.year(), mCurrentDate.month(), mCurrentDate.day()), mConfId);134 130 createTimeGroups(); 135 131 }
Note: See TracChangeset
for help on using the changeset viewer.