Ignore:
Timestamp:
01/20/10 16:27:11 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
a5c1179
Parents:
f2ef735
Message:

MAEMO: work on alarm

  • snooze alarm
  • cancel alarm
  • run application which automatically display Event dialog for given Event ID
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/eventdialog.cpp

    rf2ef735 rd4a8bbf  
    33#include <QScrollBar>
    44
    5 EventDialog::EventDialog(const QModelIndex &aIndex, QWidget *aParent)
     5EventDialog::EventDialog(const int &aEventId, QWidget *aParent)
    66    : QDialog(aParent)
    7     , mIndex(aIndex)
     7    , mEventId(aEventId)
    88{
    99    setupUi(this);
     10
     11    const int confId = 1;
     12    Event event = Event::getById(aEventId,confId);
    1013
    1114    abstract->setStyleSheet("background-color : transparent;");
     
    2831    description->verticalScrollBar()->setPalette(p2);
    2932
    30     Event *event = static_cast<Event *>(mIndex.internalPointer());
    31     title->setText(event->title());
    32     persons->setText(event->persons().join(" and "));
    33     abstract->setPlainText(event->abstract());
    34     description->setPlainText(event->description());
     33    title->setText(event.title());
     34    persons->setText(event.persons().join(" and "));
     35    abstract->setPlainText(event.abstract());
     36    description->setPlainText(event.description());
    3537}
    3638
Note: See TracChangeset for help on using the changeset viewer.