From 9e4b4807e89a5ccea45a119db9e7d8d02972dc98 Mon Sep 17 00:00:00 2001 From: harlekin Date: Thu, 21 Nov 2002 17:22:36 +0000 Subject: better way to launch edit personal data --- (limited to 'core/pim') diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 1b31cfd..e6f8c93 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -185,12 +185,10 @@ void Today::loadPlugins() { if ( pluginListRefreshExclude.contains( (*it) ) ) { // if its not in allApplets list, add it to a layout if ( !m_allApplets.contains( pluginListRefreshExclude[(*it)].name ) ) { - qDebug( "NUGASDA" ); layout->addWidget( pluginListRefreshExclude[(*it)].guiBox ); pluginList.append( pluginListRefreshExclude[(*it)] ); } else { tempList.insert( pluginListRefreshExclude[(*it)].name, pluginListRefreshExclude[(*it)] ); - qDebug( "TEST2 " + pluginListRefreshExclude[(*it)].name ); } } else { @@ -355,7 +353,7 @@ void Today::startConfig() { void Today::refresh() { init(); - qDebug(" refresh "); + // qDebug(" refresh "); // set the date in top label QDate date = QDate::currentDate(); QString time = ( tr( date.toString() ) ); @@ -373,12 +371,6 @@ void Today::refresh() { draw(); } -void Today::startAddressbook() { - QCopEnvelope e( "QPE/System", "execute(QString)" ); - e << QString( "addressbook" ); -} - - void Today::startApplication() { QCopEnvelope e( "QPE/System", "execute(QString)" ); e << QString( sender()->name() ); @@ -388,11 +380,7 @@ void Today::startApplication() { * launch addressbook (personal card) */ void Today::editCard() { - startAddressbook(); - while( !QCopChannel::isRegistered( "QPE/Addressbook" ) ) { - qApp->processEvents(); - } - QCopEnvelope v( "QPE/Addressbook", "editPersonalAndClose()" ); + QCopEnvelope env( "QPE/Application/addressbook", "editPersonalAndClose()" ); } Today::~Today() { diff --git a/core/pim/today/today.h b/core/pim/today/today.h index 4485a0b..35b7ee3 100644 --- a/core/pim/today/today.h +++ b/core/pim/today/today.h @@ -45,7 +45,6 @@ class Today : public TodayBase { private slots: void startConfig(); - void startAddressbook(); void startApplication(); void editCard(); void refresh(); -- cgit v0.9.0.2