From: Philipp Spitzer Date: Wed, 14 Jul 2021 19:33:29 +0000 (+0200) Subject: Fix typo "favourities" -> "favourites". X-Git-Tag: 0.7.0~21 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/d92140626e67c922b3afdfc1d7c95415078b06cd Fix typo "favourities" -> "favourites". --- diff --git a/src/mvc/delegate.cpp b/src/mvc/delegate.cpp index ae44cf6..a3e64a7 100644 --- a/src/mvc/delegate.cpp +++ b/src/mvc/delegate.cpp @@ -184,7 +184,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons else // doesn't have parent - time-groups' elements (top items) { - int numFav = numberOfFavourities(index); + int numFav = numberOfFavourites(index); int numAlarm = numberOfAlarms(index); QStyleOptionButton styleOptionButton; @@ -355,7 +355,7 @@ bool Delegate::isPointFromRect(const QPoint &aPoint, const QRect &aRect) const 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; diff --git a/src/mvc/delegate.h b/src/mvc/delegate.h index 2ee765f..d76455f 100644 --- a/src/mvc/delegate.h +++ b/src/mvc/delegate.h @@ -90,10 +90,10 @@ class Delegate : public QItemDelegate 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: diff --git a/src/mvc/event.h b/src/mvc/event.h index ea85a04..0c973d0 100644 --- a/src/mvc/event.h +++ b/src/mvc/event.h @@ -48,7 +48,7 @@ public: public: static Event getById(int id, int conferenceId); static QList getByDate(const QDate & date, int conferenceId, QString orderBy); - static QList getFavByDate(const QDate & date, int conferenceId); // get Favourities by Date + static QList getFavByDate(const QDate & date, int conferenceId); // get favourites by date static QList getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy); static QList getByTrack(int id); static QList getByDateAndRoom(const QDate& date, int conferenceId);