Diffstat (limited to 'core/pim/osearch/eventitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/eventitem.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/core/pim/osearch/eventitem.cpp b/core/pim/osearch/eventitem.cpp index 758ad85..3b84b42 100644 --- a/core/pim/osearch/eventitem.cpp +++ b/core/pim/osearch/eventitem.cpp @@ -36,4 +36,8 @@ QString EventItem::toRichText() -void EventItem::editItem() +void EventItem::action( int act ) { + if (act == 0){ + QCopEnvelope e("QPE/Application/datebook", "viewDefault(QDate)"); + e << _event->startDateTime().date(); + }else if(act == 1){ QCopEnvelope e("QPE/Application/datebook", "editEvent(int)"); @@ -41,10 +45,10 @@ void EventItem::editItem() } +} -void EventItem::showItem() +QIntDict<QString> EventItem::actions() { - QCopEnvelope e("QPE/Application/datebook", "viewDefault(QDate)"); - QDate day = _event->startDateTime().date(); - qDebug("sending view day %s",day.toString().latin1()); - e << day; + QIntDict<QString> result; + result.insert( 0, new QString( QObject::tr("show") ) ); + result.insert( 1, new QString( QObject::tr("edit") ) ); + return result; } - |