From c2165f4e14bc2f7ab2ef19f5c35497dde5e87a0d Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 09 Oct 2004 02:17:06 +0000 Subject: import ir fixes --- (limited to 'kaddressbook/mainembedded.cpp') diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 965fb06..6dd97b8 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp @@ -1,5 +1,6 @@ #ifndef DESKTOP_VERSION #include +#include #include #else #include @@ -77,13 +78,18 @@ int main( int argc, char **argv ) KPimGlobalPrefs::instance()->setGlobalConfig(); } #ifndef DESKTOP_VERSION - a.showMainWidget( &m ); + a.showMainWidget( &m ); + QCopChannel* c1 = new QCopChannel("QPE/Application/addressbook",&m, "channelAB" ) ; + QObject::connect( c1, SIGNAL (received ( const QCString &, const QByteArray & )),&m, SLOT(recieve( const QCString&, const QByteArray& ))); #else a.setMainWidget( &m ); m.resize (640, 480 ); m.show(); #endif a.exec(); +#ifndef DESKTOP_VERSION + delete c1; +#endif } qDebug("KA: Bye! "); -- cgit v0.9.0.2