qt5
Last change
on this file since 07ae23a was
07ae23a,
checked in by timkoma <timkoma@…>, 12 years ago
|
refactoring of the TABS
|
-
Property mode set to
100644
|
File size:
887 bytes
|
Rev | Line | |
---|
[07ae23a] | 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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.