Changeset d921406 in confclerk_git
- Timestamp:
- 07/14/21 21:33:29 (12 months ago)
- Branches:
- master
- Children:
- 85c3458
- Parents:
- 102d186
- Location:
- src/mvc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/delegate.cpp
r102d186 rd921406 185 185 else // doesn't have parent - time-groups' elements (top items) 186 186 { 187 int numFav = numberOfFavourit ies(index);187 int numFav = numberOfFavourites(index); 188 188 int numAlarm = numberOfAlarms(index); 189 189 … … 356 356 } 357 357 358 int Delegate::numberOfFavourit ies(const QModelIndex &index) const358 int Delegate::numberOfFavourites(const QModelIndex &index) const 359 359 { 360 360 if(index.parent().isValid()) // it's event, not time-group -
src/mvc/delegate.h
r102d186 rd921406 91 91 // TODO: the better place for these methods would be 'eventmodel' 92 92 // they are used in 'paint' method and so it's better to obtain number of 93 // favourit ies/alarms once when the data has changed and not to call93 // favourites/alarms once when the data has changed and not to call 94 94 // these methods which iterate over all Events in corresponding group 95 95 // every time it requires them 96 int numberOfFavourit ies(const QModelIndex &index) const;96 int numberOfFavourites(const QModelIndex &index) const; 97 97 int numberOfAlarms(const QModelIndex &index) const; 98 98 -
src/mvc/event.h
r102d186 rd921406 49 49 static Event getById(int id, int conferenceId); 50 50 static QList<Event> getByDate(const QDate & date, int conferenceId, QString orderBy); 51 static QList<Event> getFavByDate(const QDate & date, int conferenceId); // get Favourities by Date51 static QList<Event> getFavByDate(const QDate & date, int conferenceId); // get favourites by date 52 52 static QList<Event> getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy); 53 53 static QList<Event> getByTrack(int id);
Note: See TracChangeset
for help on using the changeset viewer.