070dc9df8a7b566fadc1d887add98459b237a074
[toast/confclerk.git] / src / gui / conflictsdialog.cpp
1 #include "conflictsdialog.h"
2
3 ConflictsDialog::ConflictsDialog(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     int confId = Conference::activeConference();
11     QDate startDate = Conference::getById(confId).start();
12     QDate endDate = Conference::getById(confId).end();
13     container->setDates(startDate, endDate);
14 }
15
16 ConflictsDialog::~ConflictsDialog()
17 {
18     disconnect(container, SIGNAL(eventHasChanged(int)), this, SIGNAL(eventHasChanged(int)));
19 }
20