source: src/gui/favtabcontainer.cpp @ eb21333

qt5
Last change on this file since eb21333 was d49254d, checked in by pavelpa <pavelpa@…>, 12 years ago

'conflict' dialog now contains list of events in conflict with given eventId

  • Property mode set to 100644
File size: 829 bytes
RevLine 
[07ae23a]1
2#include "favtabcontainer.h"
3
4FavTabContainer::FavTabContainer(QWidget *aParent) : TabContainer( aParent )
5{
6}
7
8void FavTabContainer::loadEvents( const QDate &aDate, const int aConferenceId )
9{
10    static_cast<EventModel*>(treeView->model())->loadFavEvents( aDate, aConferenceId );
11}
12
13void FavTabContainer::updateTreeViewModel(int aEventId)
14{
[d49254d]15    Q_UNUSED(aEventId);
16
[07ae23a]17    // requires special handling
18    // we need to reload favourites, because some favourite could be deleted
19    //static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId);
[0bb39f5]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() );
[07ae23a]25}
[0bb39f5]26
Note: See TracBrowser for help on using the repository browser.