event-dialog - displayed persons/presenters names
[toast/confclerk.git] / src / gui / eventdialog.cpp
index 8dd8f79..dbd277d 100644 (file)
@@ -1,13 +1,19 @@
 #include "eventdialog.h"
 
+#include <QDebug>
+
 EventDialog::EventDialog(const QModelIndex &aIndex, QWidget *aParent)
     : QDialog(aParent)
     , mIndex(aIndex)
 {
     setupUi(this);
+
+    abstract->setStyleSheet("background-color : transparent;");
+    description->setStyleSheet("background-color : transparent;");
+
     Event *event = static_cast<Event *>(mIndex.internalPointer());
     title->setText(event->title());
-    persons->setText(QString::number(event->id()));
+    persons->setText(event->persons().join(" and "));
     abstract->setPlainText(event->abstract());
     description->setPlainText(event->description());
 }