- Timestamp:
- 04/15/10 14:50:23 (13 years ago)
- Branches:
- master, qt5
- Children:
- 2eda137
- Parents:
- d97bcab
- Location:
- src/mvc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/eventmodel.cpp
rd97bcab r04acaf9 25 25 26 26 EventModel::EventModel() 27 { 28 mEvents.clear(); 29 } 27 { } 30 28 31 29 void EventModel::createTimeGroups() … … 63 61 64 62 mGroups.last().mChildCount = mEvents.count() - mGroups.last().mFirstEventIndex; 63 64 reset(); 65 65 } 66 66 … … 200 200 void EventModel::clearModel() 201 201 { 202 for(int i = 0;i < mGroups.count();i++){ 203 QModelIndex idx = index(i, 0); 204 Group group = mGroups[i]; 205 beginRemoveRows(idx, 0, group.mChildCount - 1); 206 /*bool ok =*/ removeRows(0, group.mChildCount, idx); 207 endRemoveRows(); 208 //qDebug() << "removing " << group.mChildCount << " events from group:" << i << idx.data() << ":" << ok; 209 } 202 qDebug() << __PRETTY_FUNCTION__ << this << mEvents.count(); 203 mGroups.clear(); 210 204 mEvents.clear(); 205 mParents.clear(); 206 207 reset(); 211 208 } 212 209 -
src/mvc/eventmodel.h
rd97bcab r04acaf9 42 42 void loadEventsByRoom(const QDate &aDate, int aConferenceId); 43 43 void loadConflictEvents(int aEventId, int aConferenceId); // loads events in conflict 44 void clearModel(); 44 45 45 46 private: … … 63 64 void createTrackGroups(); 64 65 void createTrackGroupsNew(); 65 void clearModel();66 66 void createRoomGroups(); 67 67
Note: See TracChangeset
for help on using the changeset viewer.