Changeset d921406 in confclerk_git


Ignore:
Timestamp:
07/14/21 21:33:29 (12 months ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
85c3458
Parents:
102d186
Message:

Fix typo "favourities" -> "favourites".

Location:
src/mvc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/delegate.cpp

    r102d186 rd921406  
    185185    else // doesn't have parent - time-groups' elements (top items)
    186186    {
    187         int numFav = numberOfFavourities(index);
     187        int numFav = numberOfFavourites(index);
    188188        int numAlarm = numberOfAlarms(index);
    189189
     
    356356}
    357357
    358 int Delegate::numberOfFavourities(const QModelIndex &index) const
     358int Delegate::numberOfFavourites(const QModelIndex &index) const
    359359{
    360360    if(index.parent().isValid()) // it's event, not time-group
  • src/mvc/delegate.h

    r102d186 rd921406  
    9191        // TODO: the better place for these methods would be 'eventmodel'
    9292        // they are used in 'paint' method and so it's better to obtain number of
    93         // favourities/alarms once when the data has changed and not to call
     93        // favourites/alarms once when the data has changed and not to call
    9494        // these methods which iterate over all Events in corresponding group
    9595        // every time it requires them
    96         int numberOfFavourities(const QModelIndex &index) const;
     96        int numberOfFavourites(const QModelIndex &index) const;
    9797        int numberOfAlarms(const QModelIndex &index) const;
    9898
  • src/mvc/event.h

    r102d186 rd921406  
    4949    static Event getById(int id, int conferenceId);
    5050    static QList<Event> getByDate(const QDate & date, int conferenceId, QString orderBy);
    51     static QList<Event> getFavByDate(const QDate & date, int conferenceId); // get Favourities by Date
     51    static QList<Event> getFavByDate(const QDate & date, int conferenceId); // get favourites by date
    5252    static QList<Event> getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy);
    5353    static QList<Event> getByTrack(int id);
Note: See TracChangeset for help on using the changeset viewer.