'conflict' dialog now contains list of events in conflict with given eventId
[toast/confclerk.git] / src / gui / conflictsdialog.cpp
1 #include "conflictsdialog.h"
2
3 ConflictsDialog::ConflictsDialog(int aEventId, QWidget *aParent)
4     : QDialog(aParent)
5 {
6     setupUi(this);
7     connect(container, SIGNAL(eventHasChanged(int)), this, SIGNAL(eventHasChanged(int)));
8     connect(container, SIGNAL(eventHasChanged(int)), container, SLOT(updateTreeViewModel(int)));
9
10     container->setEventId(aEventId);
11
12     int confId = Conference::activeConference();
13     QDate startDate = Conference::getById(confId).start();
14     QDate endDate = Conference::getById(confId).end();
15     container->setDates(startDate, endDate);
16 }
17
18 ConflictsDialog::~ConflictsDialog()
19 {
20     disconnect(container, SIGNAL(eventHasChanged(int)), this, SIGNAL(eventHasChanged(int)));
21 }
22