qt5
Last change
on this file since d49254d was
d49254d,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
'conflict' dialog now contains list of events in conflict with given eventId
|
-
Property mode set to
100644
|
File size:
710 bytes
|
Line | |
---|
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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.