2ce5f2a718c9742634d70491371aac37aad87625
[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,bool)), this, SIGNAL(eventHasChanged(int,bool)));
8     connect(container, SIGNAL(eventHasChanged(int,bool)), container, SLOT(updateTreeViewModel(int,bool)));
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,bool)), this, SIGNAL(eventHasChanged(int,bool)));
21 }
22