qt5
Last change
on this file since ea638ef was
ea638ef,
checked in by pavelpa <pavelpa@…>, 12 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:
658 bytes
|
Rev | Line | |
---|
[ea638ef] | 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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.