author | harlekin <harlekin> | 2002-06-11 23:33:52 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-11 23:33:52 (UTC) |
commit | d7c563f849316c7a742769e88136058afb69a2d9 (patch) (side-by-side diff) | |
tree | ac82e68921345a336fba28b9f62050b0a3d6d11c | |
parent | 37ab41238538d7c89090c083953b794cfdc29c6a (diff) | |
download | opie-d7c563f849316c7a742769e88136058afb69a2d9.zip opie-d7c563f849316c7a742769e88136058afb69a2d9.tar.gz opie-d7c563f849316c7a742769e88136058afb69a2d9.tar.bz2 |
click on vcard label launches not the input
-rw-r--r-- | core/pim/today/today.cpp | 18 | ||||
-rw-r--r-- | core/pim/today/today.h | 1 |
2 files changed, 12 insertions, 7 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 9e9d31f..ad1ec90 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -412,50 +412,54 @@ void Today::getTodo() { output = tr("There is <b> 1</b> active task: <br>" ); } else { output = tr("There are <b> %1</b> active tasks: <br>").arg(count); } output += tmpout; } else { output = tr("No active tasks"); } TodoField->setText(tr(output)); } + +void Today::startAddressbook() { + QCopEnvelope e("QPE/System", "execute(QString)"); + e << QString("addressbook"); +} + +extern QPEApplication *todayApp; + /* * launch addressbook (personal card) */ void Today::editCard() { - QCopEnvelope w("QPE/System", "execute(QString)"); - w << QString("addressbook"); - // while( !QCopChannel::isRegistered("QPE/Addressbook")) + startAddressbook(); + + while( !QCopChannel::isRegistered("QPE/Addressbook")) todayApp->processEvents(); QCopEnvelope v("QPE/Addressbook", "editPersonalAndClose()"); } /* * launches datebook */ void Today::startDatebook() { QCopEnvelope e("QPE/System", "execute(QString)"); e << QString("datebook"); } /* * starts the edit dialog as known from datebook */ - - -extern QPEApplication *todayApp; - void Today::editEvent(const Event &e) { startDatebook(); while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); QCopEnvelope env("QPE/Datebook", "editEvent(int)"); env << e.uid(); } /* * launches todolist */ void Today::startTodo() { diff --git a/core/pim/today/today.h b/core/pim/today/today.h index 54f31cc..f28c029 100644 --- a/core/pim/today/today.h +++ b/core/pim/today/today.h @@ -37,24 +37,25 @@ class QVBoxLayout; class Today : public TodayBase { Q_OBJECT public: Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~Today(); private slots: void startConfig(); void startTodo(); void startDatebook(); + void startAddressbook(); void startMail(); void editCard(); void draw(); void editEvent(const Event &e); private: void init(); void getDates(); void getTodo(); void getMail(); void autoStart(); bool checkIfModified(); void setOwnerField(); |