author | harlekin <harlekin> | 2002-09-17 17:30:39 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-17 17:30:39 (UTC) |
commit | a1b2f800f53715452f75153218e33fcd8907bbbf (patch) (side-by-side diff) | |
tree | 878078c578767c1d14ed5c082709b233201b8244 | |
parent | e1614b49cf61ee37350828ce5b5178a9da752f39 (diff) | |
download | opie-a1b2f800f53715452f75153218e33fcd8907bbbf.zip opie-a1b2f800f53715452f75153218e33fcd8907bbbf.tar.gz opie-a1b2f800f53715452f75153218e33fcd8907bbbf.tar.bz2 |
activation and deactivation of plugins works now
-rw-r--r-- | core/pim/today/today.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 066a5a8..2095174 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -215,8 +215,6 @@ void Today::draw() { if ( plugin.active ) { qDebug( plugin.name + " is ACTIVE " ); - // QHBoxLayout* plugLayout = new QHBoxLayout( this ); plugin.guiBox->show(); } else { - // plugin.guiWidget->hide(); qDebug( plugin.name + " is INACTIVE" ); plugin.guiBox->hide(); @@ -270,4 +268,5 @@ void Today::startConfig() { TodayPlugin plugin; + QValueList<TodayPlugin> plugList; for ( uint i = 0; i < pluginList.count(); i++ ) { plugin = pluginList[i]; @@ -278,8 +277,9 @@ void Today::startConfig() { } else { qDebug("CONFIG " + plugin.name + " INACTIVE"); - plugin.active = false; } + plugList.append( plugin ); } + pluginList = plugList; draw(); @@ -309,6 +309,6 @@ void Today::editCard() { */ void Today::launchApp( QString appName ) { - QCopEnvelope e( "QPE/System", "execute(QString)" ); - e << QString( appName ); + QCopEnvelope e( "QPE/System", "execute(QString)" ); + e << QString( appName ); } |