From dee656e9bf63cc44f906375d5b24cd953a945a8f Mon Sep 17 00:00:00 2001 From: hakan Date: Fri, 29 Mar 2002 16:34:24 +0000 Subject: Clicking an event will now bring it up in the datebook dateentry editor --- (limited to 'core/pim') diff --git a/core/pim/today/main.cpp b/core/pim/today/main.cpp index 552db7c..72c0a2e 100644 --- a/core/pim/today/main.cpp +++ b/core/pim/today/main.cpp @@ -20,9 +20,12 @@ #include "today.h" #include +QPEApplication *todayApp; + int main( int argc, char ** argv ) { QPEApplication a(argc, argv); + todayApp=&a; Today t; diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index aef0a9b..66a4152 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -406,15 +407,15 @@ void Today::startDatebook() { /* * starts the edit dialog as known from datebook */ + +extern QPEApplication *todayApp; + void Today::editEvent(const Event &e) { startDatebook(); - //Dissabled for now as uid's not working properly - /* - while(!QCopChannel::isRegistered("QPE/Datebook")) sleep(1); - QCopEnvelope env("QPE/Datebook", "editEvent(int)"); - env << e.uid(); - */ + while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); + QCopEnvelope env("QPE/Datebook", "editEvent(int)"); + env << e.uid(); } /* -- cgit v0.9.0.2