author | harlekin <harlekin> | 2002-06-11 13:03:07 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-11 13:03:07 (UTC) |
commit | e9b7ffa394fa30bea063fbed68b36800e9ebee6d (patch) (side-by-side diff) | |
tree | 42c4af4f287e63fb60653a06d5d017927f9eb21a /core/pim/today/today.cpp | |
parent | b9b967bca768625cba2019981954c8b336020fb2 (diff) | |
download | opie-e9b7ffa394fa30bea063fbed68b36800e9ebee6d.zip opie-e9b7ffa394fa30bea063fbed68b36800e9ebee6d.tar.gz opie-e9b7ffa394fa30bea063fbed68b36800e9ebee6d.tar.bz2 |
vcard now clickable label
-rw-r--r-- | core/pim/today/today.cpp | 10 |
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 @@ -59,24 +59,25 @@ int NEW_START=1; QString AUTOSTART_TIMER; /* * Constructs a Example which is a child of 'parent', with the * name 'name' and widget flags set to 'f' */ Today::Today( QWidget* parent, const char* name, WFlags fl ) : TodayBase( parent, name, fl ), AllDateBookEvents(NULL) { QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) ); QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) ); QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) ); QObject::connect( (QObject*)MailButton, SIGNAL( clicked() ), this, SLOT(startMail() ) ); + QObject::connect( (QObject*)OwnerField, SIGNAL( clicked() ), this, SLOT(editCard() ) ); #if defined(Q_WS_QWS) #if !defined(QT_NO_COP) QCopChannel *todayChannel = new QCopChannel("QPE/Today" , this ); connect (todayChannel, SIGNAL( received(const QCString &, const QByteArray &)), this, SLOT ( channelReceived(const QCString &, const QByteArray &)) ); #endif #endif db = NULL; @@ -410,24 +411,33 @@ 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)); } + +/* + * launch addressbook + */ +void Today::editCard() { + QCopEnvelope e("QPE/System", "execute(QString)"); + e << QString("addressbook"); +} + /* * launches datebook */ void Today::startDatebook() { QCopEnvelope e("QPE/System", "execute(QString)"); e << QString("datebook"); } /* * starts the edit dialog as known from datebook */ |