event-dialog - displayed persons/presenters names
[toast/confclerk.git] / src / gui / eventdialog.cpp
1 #include "eventdialog.h"
2
3 #include <QDebug>
4
5 EventDialog::EventDialog(const QModelIndex &aIndex, QWidget *aParent)
6     : QDialog(aParent)
7     , mIndex(aIndex)
8 {
9     setupUi(this);
10
11     abstract->setStyleSheet("background-color : transparent;");
12     description->setStyleSheet("background-color : transparent;");
13
14     Event *event = static_cast<Event *>(mIndex.internalPointer());
15     title->setText(event->title());
16     persons->setText(event->persons().join(" and "));
17     abstract->setPlainText(event->abstract());
18     description->setPlainText(event->description());
19 }
20