Fix typo "favourities" -> "favourites".
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 14 Jul 2021 19:33:29 +0000 (21:33 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 14 Jul 2021 19:33:29 +0000 (21:33 +0200)
src/mvc/delegate.cpp
src/mvc/delegate.h
src/mvc/event.h

index ae44cf6811bb0acc7d91022afc764f37f608b6d2..a3e64a7b3df4f0431e96dcde2ab7a68a210b512b 100644 (file)
@@ -184,7 +184,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons
 
     else // doesn't have parent - time-groups' elements (top items)
     {
 
     else // doesn't have parent - time-groups' elements (top items)
     {
-        int numFav = numberOfFavourities(index);
+        int numFav = numberOfFavourites(index);
         int numAlarm = numberOfAlarms(index);
 
         QStyleOptionButton styleOptionButton;
         int numAlarm = numberOfAlarms(index);
 
         QStyleOptionButton styleOptionButton;
@@ -355,7 +355,7 @@ bool Delegate::isPointFromRect(const QPoint &aPoint, const QRect &aRect) const
     return false;
 }
 
     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;
 {
     if(index.parent().isValid()) // it's event, not time-group
         return 0;
index 2ee765f88a077119e6aa5a38e3c93be032f76c07..d76455fcd28c091f8a81bc3406a753a28a7788f3 100644 (file)
@@ -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
         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
         // 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:
         int numberOfAlarms(const QModelIndex &index) const;
 
     private:
index ea85a0432f63fd56a8ba1fb2194cd1380226d8f2..0c973d0c7e01cc7c93ad52a81671d4e0887a8e6a 100644 (file)
@@ -48,7 +48,7 @@ public:
 public:
     static Event getById(int id, int conferenceId);
     static QList<Event> getByDate(const QDate & date, int conferenceId, QString orderBy);
 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);
     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);