author | hakan <hakan> | 2002-03-29 16:34:24 (UTC) |
---|---|---|
committer | hakan <hakan> | 2002-03-29 16:34:24 (UTC) |
commit | dee656e9bf63cc44f906375d5b24cd953a945a8f (patch) (side-by-side diff) | |
tree | 5277eb78d25bd3b55dd3196dc8eff926d0e3ba4d | |
parent | 3a1684894efb2106f957469b94350abf754a404e (diff) | |
download | opie-dee656e9bf63cc44f906375d5b24cd953a945a8f.zip opie-dee656e9bf63cc44f906375d5b24cd953a945a8f.tar.gz opie-dee656e9bf63cc44f906375d5b24cd953a945a8f.tar.bz2 |
Clicking an event will now bring it up in the datebook dateentry editor
-rw-r--r-- | core/pim/today/main.cpp | 3 | ||||
-rw-r--r-- | core/pim/today/today.cpp | 13 |
2 files changed, 10 insertions, 6 deletions
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 @@ -17,15 +17,18 @@ * * ***************************************************************************/ #include "today.h" #include <qpe/qpeapplication.h> +QPEApplication *todayApp; + int main( int argc, char ** argv ) { QPEApplication a(argc, argv); + todayApp=&a; Today t; t.setCaption( Today::tr("Today") ); a.showMainWidget(&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 @@ -23,12 +23,13 @@ #include <qpe/config.h> #include <qpe/qcopenvelope_qws.h> #include <qpe/qprocess.h> #include <qpe/resource.h> #include <qpe/contact.h> #include <qpe/global.h> +#include <qpe/qpeapplication.h> #include <qdir.h> #include <qfile.h> #include <qdatetime.h> #include <qtextstream.h> #include <qcheckbox.h> @@ -403,21 +404,21 @@ void Today::startDatebook() { e << QString("datebook"); } /* * 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(); } /* * launches todolist */ void Today::startTodo() { |