summaryrefslogtreecommitdiff
path: root/core/pim/today/today.cpp
Unidiff
Diffstat (limited to 'core/pim/today/today.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 4368201..69a0f75 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -65,12 +65,13 @@ QString AUTOSTART_TIMER;
65Today::Today( QWidget* parent, const char* name, WFlags fl ) 65Today::Today( QWidget* parent, const char* name, WFlags fl )
66 : TodayBase( parent, name, fl ), AllDateBookEvents(NULL) { 66 : TodayBase( parent, name, fl ), AllDateBookEvents(NULL) {
67 QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) ); 67 QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) );
68 QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) ); 68 QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) );
69 QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) ); 69 QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) );
70 QObject::connect( (QObject*)MailButton, SIGNAL( clicked() ), this, SLOT(startMail() ) ); 70 QObject::connect( (QObject*)MailButton, SIGNAL( clicked() ), this, SLOT(startMail() ) );
71 QObject::connect( (QObject*)OwnerField, SIGNAL( clicked() ), this, SLOT(editCard() ) );
71 72
72#if defined(Q_WS_QWS) 73#if defined(Q_WS_QWS)
73#if !defined(QT_NO_COP) 74#if !defined(QT_NO_COP)
74 QCopChannel *todayChannel = new QCopChannel("QPE/Today" , this ); 75 QCopChannel *todayChannel = new QCopChannel("QPE/Today" , this );
75 connect (todayChannel, SIGNAL( received(const QCString &, const QByteArray &)), 76 connect (todayChannel, SIGNAL( received(const QCString &, const QByteArray &)),
76 this, SLOT ( channelReceived(const QCString &, const QByteArray &)) ); 77 this, SLOT ( channelReceived(const QCString &, const QByteArray &)) );
@@ -416,12 +417,21 @@ void Today::getTodo() {
416 output = tr("No active tasks"); 417 output = tr("No active tasks");
417 } 418 }
418 419
419 TodoField->setText(tr(output)); 420 TodoField->setText(tr(output));
420} 421}
421 422
423
424/*
425 * launch addressbook
426 */
427void Today::editCard() {
428 QCopEnvelope e("QPE/System", "execute(QString)");
429 e << QString("addressbook");
430}
431
422/* 432/*
423 * launches datebook 433 * launches datebook
424 */ 434 */
425void Today::startDatebook() { 435void Today::startDatebook() {
426 QCopEnvelope e("QPE/System", "execute(QString)"); 436 QCopEnvelope e("QPE/System", "execute(QString)");
427 e << QString("datebook"); 437 e << QString("datebook");