summaryrefslogtreecommitdiff
path: root/core/pim/today/today.cpp
Unidiff
Diffstat (limited to 'core/pim/today/today.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 901a61a..7673df5 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -184,25 +184,25 @@ void Today::loadPlugins() {
184 184
185 // on first start the list is off course empty 185 // on first start the list is off course empty
186 if ( m_allApplets.isEmpty() ) { 186 if ( m_allApplets.isEmpty() ) {
187 layout->addWidget( plugin.guiBox ); 187 layout->addWidget( plugin.guiBox );
188 pluginList.append( plugin ); 188 pluginList.append( plugin );
189 } 189 }
190 } else { 190 } else {
191 qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() ); 191 qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() );
192 delete lib; 192 delete lib;
193 } 193 }
194 } 194 }
195 195
196 if ( !m_allApplets.isEmpty() ) { 196 if ( !m_allApplets.isEmpty() ) {
197 TodayPlugin tempPlugin; 197 TodayPlugin tempPlugin;
198 QStringList::Iterator stringit; 198 QStringList::Iterator stringit;
199 for( stringit = m_allApplets.begin(); stringit != m_allApplets.end(); ++stringit ) { 199 for( stringit = m_allApplets.begin(); stringit != m_allApplets.end(); ++stringit ) {
200 tempPlugin = ( tempList.find( *stringit ) ).data(); 200 tempPlugin = ( tempList.find( *stringit ) ).data();
201 if ( !( (tempPlugin.name).isEmpty() ) ) { 201 if ( !( (tempPlugin.name).isEmpty() ) ) {
202 layout->addWidget( tempPlugin.guiBox ); 202 layout->addWidget( tempPlugin.guiBox );
203 pluginList.append( tempPlugin ); 203 pluginList.append( tempPlugin );
204 } 204 }
205 } 205 }
206 } 206 }
207} 207}
208 208
@@ -216,28 +216,28 @@ void Today::draw() {
216 QLabel *noPlugins = new QLabel( this ); 216 QLabel *noPlugins = new QLabel( this );
217 noPlugins->setText( tr( "No plugins found" ) ); 217 noPlugins->setText( tr( "No plugins found" ) );
218 layout->addWidget( noPlugins ); 218 layout->addWidget( noPlugins );
219 return; 219 return;
220 } 220 }
221 221
222 uint count = 0; 222 uint count = 0;
223 TodayPlugin plugin; 223 TodayPlugin plugin;
224 for ( uint i = 0; i < pluginList.count(); i++ ) { 224 for ( uint i = 0; i < pluginList.count(); i++ ) {
225 plugin = pluginList[i]; 225 plugin = pluginList[i];
226 226
227 if ( plugin.active ) { 227 if ( plugin.active ) {
228 qDebug( plugin.name + " is ACTIVE " ); 228 // qDebug( plugin.name + " is ACTIVE " );
229 plugin.guiBox->show(); 229 plugin.guiBox->show();
230 } else { 230 } else {
231 qDebug( plugin.name + " is INACTIVE" ); 231 // qDebug( plugin.name + " is INACTIVE" );
232 plugin.guiBox->hide(); 232 plugin.guiBox->hide();
233 } 233 }
234 count++; 234 count++;
235 } 235 }
236 236
237 if ( count == 0 ) { 237 if ( count == 0 ) {
238 QLabel *noPluginsActive = new QLabel( this ); 238 QLabel *noPluginsActive = new QLabel( this );
239 noPluginsActive->setText( tr( "No plugins activated" ) ); 239 noPluginsActive->setText( tr( "No plugins activated" ) );
240 layout->addWidget( noPluginsActive ); 240 layout->addWidget( noPluginsActive );
241 } 241 }
242 layout->addStretch(0); 242 layout->addStretch(0);
243} 243}