2 #include "favtabcontainer.h"
4 FavTabContainer::FavTabContainer(QWidget *aParent) : TabContainer( aParent )
8 void FavTabContainer::loadEvents( const QDate &aDate, const int aConferenceId )
10 static_cast<EventModel*>(treeView->model())->loadFavEvents( aDate, aConferenceId );
13 void FavTabContainer::updateTreeViewModel(int aEventId)
17 // requires special handling
18 // we need to reload favourites, because some favourite could be deleted
19 //static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId);
20 int confId = Conference::activeConference();
21 QDate startDate = Conference::getById(confId).start();
22 QDate endDate = Conference::getById(confId).end();
23 dayNavigator->setDates(startDate, endDate);
24 updateTreeView( Conference::getById(confId).start() );