summaryrefslogtreecommitdiff
path: root/core/pim
Unidiff
Diffstat (limited to 'core/pim') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp35
-rw-r--r--core/pim/today/today.h2
2 files changed, 6 insertions, 31 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 1f758f2..2f6907d 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -3,3 +3,3 @@
3 * 3 *
4 * copyright : (c) 2002 by Maximilian Reiß 4 * copyright : (c) 2002,2003 by Maximilian Reiß
5 * email : harlekin@handhelds.org 5 * email : harlekin@handhelds.org
@@ -72,3 +72,3 @@ Today::Today( QWidget* parent, const char* name, WFlags fl )
72 m_refreshTimer->start( 15000 ); 72 m_refreshTimer->start( 15000 );
73 init(); 73 //init();
74 loadPlugins(); 74 loadPlugins();
@@ -124,3 +124,2 @@ void Today::setOwnerField( QString &message ) {
124 124
125
126/** 125/**
@@ -140,4 +139,2 @@ void Today::init() {
140 139
141
142 // qDebug(" refresh ");
143 // set the date in top label 140 // set the date in top label
@@ -145,3 +142,2 @@ void Today::init() {
145 QString time = ( tr( date.toString() ) ); 142 QString time = ( tr( date.toString() ) );
146
147 DateLabel->setText( QString( "<font color=#FFFFFF>" + time + "</font>" ) ); 143 DateLabel->setText( QString( "<font color=#FFFFFF>" + time + "</font>" ) );
@@ -156,3 +152,2 @@ void Today::init() {
156 152
157
158/** 153/**
@@ -162,5 +157,3 @@ void Today::loadPlugins() {
162 157
163 // extra list for plugins that exclude themself from periodic refresh 158 init();
164 QMap<QString, TodayPlugin> pluginListRefreshExclude;
165
166 QValueList<TodayPlugin>::Iterator tit; 159 QValueList<TodayPlugin>::Iterator tit;
@@ -168,6 +161,2 @@ void Today::loadPlugins() {
168 for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) { 161 for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) {
169 if ( (*tit).excludeRefresh ) {
170 pluginListRefreshExclude.insert( (*tit).name , (*tit) );
171 qDebug( "Found a plugin that does not want refresh feature" );
172 } else {
173 (*tit).guiBox->hide(); 162 (*tit).guiBox->hide();
@@ -178,3 +167,2 @@ void Today::loadPlugins() {
178 } 167 }
179 }
180 pluginList.clear(); 168 pluginList.clear();
@@ -191,3 +179,2 @@ void Today::loadPlugins() {
191 for ( it = list.begin(); it != list.end(); ++it ) { 179 for ( it = list.begin(); it != list.end(); ++it ) {
192 //TodayPluginInterface *iface = 0;
193 QInterfacePtr<TodayPluginInterface> iface; 180 QInterfacePtr<TodayPluginInterface> iface;
@@ -200,14 +187,2 @@ void Today::loadPlugins() {
200 187
201 // If plugin is exludes from refresh, get it in the list again here.
202
203 if ( pluginListRefreshExclude.contains( (*it) ) ) {
204 // if its not in allApplets list, add it to a layout
205 if ( !m_allApplets.contains( pluginListRefreshExclude[(*it)].name ) ) {
206 layout->addWidget( pluginListRefreshExclude[(*it)].guiBox );
207 pluginList.append( pluginListRefreshExclude[(*it)] );
208 } else {
209 tempList.insert( pluginListRefreshExclude[(*it)].name, pluginListRefreshExclude[(*it)] );
210 }
211 } else {
212
213 TodayPlugin plugin; 188 TodayPlugin plugin;
@@ -241,3 +216,3 @@ void Today::loadPlugins() {
241 // not sure if that is good .-) 216 // not sure if that is good .-)
242 sv->setMinimumHeight( 10 ); 217 sv->setMinimumHeight( 12 );
243 sv->setResizePolicy( QScrollView::AutoOneFit ); 218 sv->setResizePolicy( QScrollView::AutoOneFit );
@@ -265,3 +240,2 @@ void Today::loadPlugins() {
265 } 240 }
266 }
267 } else { 241 } else {
@@ -372,2 +346,3 @@ void Today::startConfig() {
372void Today::refresh() { 346void Today::refresh() {
347
373 init(); 348 init();
diff --git a/core/pim/today/today.h b/core/pim/today/today.h
index 35b7ee3..24f5611 100644
--- a/core/pim/today/today.h
+++ b/core/pim/today/today.h
@@ -3,3 +3,3 @@
3 * 3 *
4 * copyright : (c) 2002 by Maximilian Reiß 4 * copyright : (c) 2002,2003 by Maximilian Reiß
5 * email : harlekin@handhelds.org 5 * email : harlekin@handhelds.org