qt5
Last change
on this file since 21d7cc0 was
0bb39f5,
checked in by pavelpa <pavelpa@…>, 12 years ago
|
removed appsettings
- created 'active' column in 'conference' table
|
-
Property mode set to
100644
|
File size:
804 bytes
|
Rev | Line | |
---|
[07ae23a] | 1 | |
---|
| 2 | #include "favtabcontainer.h" |
---|
| 3 | |
---|
| 4 | FavTabContainer::FavTabContainer(QWidget *aParent) : TabContainer( aParent ) |
---|
| 5 | { |
---|
| 6 | } |
---|
| 7 | |
---|
| 8 | void FavTabContainer::loadEvents( const QDate &aDate, const int aConferenceId ) |
---|
| 9 | { |
---|
| 10 | static_cast<EventModel*>(treeView->model())->loadFavEvents( aDate, aConferenceId ); |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | void FavTabContainer::updateTreeViewModel(int aEventId) |
---|
| 14 | { |
---|
| 15 | // requires special handling |
---|
| 16 | // we need to reload favourites, because some favourite could be deleted |
---|
| 17 | //static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId); |
---|
[0bb39f5] | 18 | int confId = Conference::activeConference(); |
---|
| 19 | QDate startDate = Conference::getById(confId).start(); |
---|
| 20 | QDate endDate = Conference::getById(confId).end(); |
---|
| 21 | dayNavigator->setDates(startDate, endDate); |
---|
| 22 | updateTreeView( Conference::getById(confId).start() ); |
---|
[07ae23a] | 23 | } |
---|
[0bb39f5] | 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.