Changeset 6f39595 for src/mvc/event.h


Ignore:
Timestamp:
01/17/10 18:18:22 (13 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
9f473ba
Parents:
c790268
Message:

started work on 'favourities'

  • created tavourities tree view in the MainWindow? 'Favourities' tab
  • listed some testing 'fav' events
  • TODO: list isn't updated dynamically, which means that the list isn't updated if the user adds/removes an event(s) to/from the 'favourities' list
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.h

    rc790268 r6f39595  
    2828    static Event getById(int id, int conferenceId);
    2929    static QList<Event> getByDate(const QDate& date, int conferenceId);
     30    static QList<Event> getFavByDate(const QDate& date, int conferenceId); // get Favourities by Date
    3031
    3132public:
     
    5455    void setType(const QString& type) { setValue("type", type); }
    5556    void setLanguage(const QString& language) { setValue("language", language); }
    56     void setFavourite(bool favourite) { setValue("favourite", favourite); }
     57    void setFavourite(bool favourite) { setValue("favourite", (int)favourite); }
    5758    // Table 2 : virtual table for FTS (Full Text Search)
    5859    void setTag(const QString& tag) { setValue("tag", tag); }
Note: See TracChangeset for help on using the changeset viewer.