]> ToastFreeware Gitweb - toast/confclerk.git/blob - src/gui/favtabcontainer.cpp
4a8e98f83b35008b20452d665a00fa416d2d930d
[toast/confclerk.git] / src / gui / favtabcontainer.cpp
1 /*
2  * favtabcontainer.cpp
3  *
4  *  Created on: Jan 27, 2010
5  *      Author: maemo
6  */
7
8 #include "favtabcontainer.h"
9
10 FavTabContainer::FavTabContainer(QWidget *aParent) : TabContainer( aParent )
11 {
12 }
13
14 void FavTabContainer::loadEvents( const QDate &aDate, const int aConferenceId )
15 {
16     static_cast<EventModel*>(treeView->model())->loadFavEvents( aDate, aConferenceId );
17 }
18
19 void FavTabContainer::updateTreeViewModel(int aEventId)
20 {
21     // requires special handling
22     // we need to reload favourites, because some favourite could be deleted
23     //static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId);
24     QDate aStartDate = Conference::getById(AppSettings::confId()).start();
25     QDate aEndDate = Conference::getById(AppSettings::confId()).end();
26     dayNavigator->setDates(aStartDate, aEndDate);
27     updateTreeView( Conference::getById(AppSettings::confId()).start() );
28 }