Ignore:
Timestamp:
01/17/10 18:18:22 (12 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/eventmodel.cpp

    rc790268 r6f39595  
    131131}
    132132
     133void EventModel::loadFavEvents(const QDate &aDate, int aConferenceId)
     134{
     135    mEvents.clear();
     136
     137    // check for existence of the conference in the DB
     138    if(Conference::getAll().count())
     139    {
     140        qDebug() << "Loading FAV Conference Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;
     141        mEvents = Event::getFavByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId);
     142    }
     143    createTimeGroups();
     144}
     145
Note: See TracChangeset for help on using the changeset viewer.