author | harlekin <harlekin> | 2002-11-21 17:22:36 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-11-21 17:22:36 (UTC) |
commit | 9e4b4807e89a5ccea45a119db9e7d8d02972dc98 (patch) (side-by-side diff) | |
tree | 6f47567e6ea18ce9d54b40678d6fc3cf762d1cee | |
parent | 7a425e527b7ed11cd113365e6c45ebecd0d72c79 (diff) | |
download | opie-9e4b4807e89a5ccea45a119db9e7d8d02972dc98.zip opie-9e4b4807e89a5ccea45a119db9e7d8d02972dc98.tar.gz opie-9e4b4807e89a5ccea45a119db9e7d8d02972dc98.tar.bz2 |
better way to launch edit personal data
-rw-r--r-- | core/pim/today/today.cpp | 16 | ||||
-rw-r--r-- | core/pim/today/today.h | 1 |
2 files changed, 2 insertions, 15 deletions
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 @@ -180,22 +180,20 @@ void Today::loadPlugins() { qDebug( "loading: %s", QString( path + "/" + *it ).latin1() ); qDebug( QString(*it) ); // If plugin is exludes from refresh, get it in the list again here. 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 { TodayPlugin plugin; plugin.library = lib; plugin.iface = iface; plugin.name = QString(*it); @@ -350,17 +348,17 @@ void Today::startConfig() { /** * Refresh for the view. Reload all applets * */ void Today::refresh() { init(); - qDebug(" refresh "); + // qDebug(" refresh "); // set the date in top label QDate date = QDate::currentDate(); QString time = ( tr( date.toString() ) ); DateLabel->setText( QString( "<font color=#FFFFFF>" + time + "</font>" ) ); if ( layout ) { delete layout; @@ -368,33 +366,23 @@ void Today::refresh() { layout = new QVBoxLayout( this ); layout->addWidget( Frame ); layout->addWidget( OwnerField ); loadPlugins(); 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() ); } /** * 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 @@ -40,17 +40,16 @@ class Today : public TodayBase { Q_OBJECT public: Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~Today(); private slots: void startConfig(); - void startAddressbook(); void startApplication(); void editCard(); void refresh(); private: void init(); void setOwnerField(); void setOwnerField(QString &string); |