author | harlekin <harlekin> | 2002-06-11 16:21:52 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-11 16:21:52 (UTC) |
commit | d709dd35dc07d4a204380354f00a89ceb4d1f845 (patch) (side-by-side diff) | |
tree | 13c3c77584516dd0a1492583c9537ed03846a3ee | |
parent | 38e25eff8c87c8f44ad6bc83b64bf3411c31c47f (diff) | |
download | opie-d709dd35dc07d4a204380354f00a89ceb4d1f845.zip opie-d709dd35dc07d4a204380354f00a89ceb4d1f845.tar.gz opie-d709dd35dc07d4a204380354f00a89ceb4d1f845.tar.bz2 |
activated the qcop channel
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 16 | ||||
-rw-r--r-- | core/pim/addressbook/addressbook.h | 0 |
2 files changed, 16 insertions, 0 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 86d1760..e11cf4c 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -132,16 +132,30 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, a = new QAction( tr( "Delete" ), Resource::loadPixmap( "trash" ), QString::null, 0, this, 0 ); actionTrash = a; connect( a, SIGNAL( activated() ), this, SLOT( slotListDelete() ) ); a->addTo( edit ); a->addTo( listTools ); + + // make it possible to go directly to businesscard via qcop call +#if defined(Q_WS_QWS) +#if !defined(QT_NO_COP) + QCopChannel *addressChannel = new QCopChannel("QPE/Addressbook" , this ); + connect (addressChannel, SIGNAL( received(const QCString &, const QByteArray &)), + this, SLOT ( appMessage(const QCString &, const QByteArray &) ) ); +#endif +#endif + + + + + #ifndef MAKE_FOR_SHARP_ROM a = new QAction( tr( "Find" ), Resource::loadPixmap( "mag" ), QString::null, 0, this, 0 ); actionFind = a; connect( a, SIGNAL(activated()), this, SLOT(slotFind()) ); a->addTo( edit ); a->addTo( listTools ); #endif @@ -245,16 +259,18 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, slotSetFont(startFontSize); mbList->insertItem( tr("Font"), fontMenu); setCentralWidget(listContainer); // qDebug("adressbook contrsuction: t=%d", t.elapsed() ); } + + void AddressbookWindow::slotSetFont( int size ) { if (size > 2 || size < 0) size = 1; startFontSize = size; QFont *currentFont; diff --git a/core/pim/addressbook/addressbook.h b/core/pim/addressbook/addressbook.h index da43731..34ca85d 100644 --- a/core/pim/addressbook/addressbook.h +++ b/core/pim/addressbook/addressbook.h |