else // doesn't have parent - time-groups' elements (top items)
{
- int numFav = numberOfFavourities(index);
+ int numFav = numberOfFavourites(index);
int numAlarm = numberOfAlarms(index);
QStyleOptionButton styleOptionButton;
return false;
}
-int Delegate::numberOfFavourities(const QModelIndex &index) const
+int Delegate::numberOfFavourites(const QModelIndex &index) const
{
if(index.parent().isValid()) // it's event, not time-group
return 0;
void defineControls();
// TODO: the better place for these methods would be 'eventmodel'
// they are used in 'paint' method and so it's better to obtain number of
- // favourities/alarms once when the data has changed and not to call
+ // favourites/alarms once when the data has changed and not to call
// these methods which iterate over all Events in corresponding group
// every time it requires them
- int numberOfFavourities(const QModelIndex &index) const;
+ int numberOfFavourites(const QModelIndex &index) const;
int numberOfAlarms(const QModelIndex &index) const;
private:
public:
static Event getById(int id, int conferenceId);
static QList<Event> getByDate(const QDate & date, int conferenceId, QString orderBy);
- static QList<Event> getFavByDate(const QDate & date, int conferenceId); // get Favourities by Date
+ static QList<Event> getFavByDate(const QDate & date, int conferenceId); // get favourites by date
static QList<Event> getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy);
static QList<Event> getByTrack(int id);
static QList<Event> getByDateAndRoom(const QDate& date, int conferenceId);