Automatic tabs update
[toast/confclerk.git] / src / gui / eventdialog.cpp
1 #include "eventdialog.h"
2
3 EventDialog::EventDialog(const QModelIndex &aIndex, QWidget *aParent)
4     : QDialog(aParent)
5     , mIndex(aIndex)
6 {
7     setupUi(this);
8     Event *event = static_cast<Event *>(mIndex.internalPointer());
9     title->setText(event->title());
10     persons->setText(QString::number(event->id()));
11     abstract->setPlainText(event->abstract());
12     description->setPlainText(event->description());
13 }
14