source: src/gui/eventdialog.cpp @ 395d6d3

qt5
Last change on this file since 395d6d3 was 395d6d3, checked in by pavelpa <pavelpa@…>, 12 years ago

event-dialog - displayed persons/presenters names

  • implemented Event::persons() method to get persons names associated with the given event ID
  • Property mode set to 100644
File size: 573 bytes
Line 
1#include "eventdialog.h"
2
3#include <QDebug>
4
5EventDialog::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
Note: See TracBrowser for help on using the repository browser.