qt5
Last change
on this file since ea638ef was
ea638ef,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
implemented 'conflicts' dialog
- displays rooms instead of conflicts for now
- needs to implement additional methods in Event, ...
|
-
Property mode set to
100644
|
File size:
889 bytes
|
Line | |
---|
1 | |
---|
2 | #include "conflictdialogcontainer.h" |
---|
3 | |
---|
4 | ConflictDialogContainer::ConflictDialogContainer(QWidget *aParent) |
---|
5 | : TabContainer( aParent ) |
---|
6 | { |
---|
7 | } |
---|
8 | |
---|
9 | void ConflictDialogContainer::loadEvents( const QDate &aDate, const int aConferenceId ) |
---|
10 | { |
---|
11 | static_cast<EventModel*>(treeView->model())->loadEventsByRoom( aDate, aConferenceId ); |
---|
12 | //treeView->setAllExpanded(true); |
---|
13 | } |
---|
14 | |
---|
15 | void ConflictDialogContainer::updateTreeViewModel(int aEventId) |
---|
16 | { |
---|
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() ); |
---|
25 | } |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.