summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (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 @@
*
- * copyright : (c) 2002 by Maximilian Reiß
+ * copyright : (c) 2002,2003 by Maximilian Reiß
* email : harlekin@handhelds.org
@@ -72,3 +72,3 @@ Today::Today( QWidget* parent, const char* name, WFlags fl )
m_refreshTimer->start( 15000 );
- init();
+ //init();
loadPlugins();
@@ -124,3 +124,2 @@ void Today::setOwnerField( QString &message ) {
-
/**
@@ -140,4 +139,2 @@ void Today::init() {
-
- // qDebug(" refresh ");
// set the date in top label
@@ -145,3 +142,2 @@ void Today::init() {
QString time = ( tr( date.toString() ) );
-
DateLabel->setText( QString( "<font color=#FFFFFF>" + time + "</font>" ) );
@@ -156,3 +152,2 @@ void Today::init() {
-
/**
@@ -162,5 +157,3 @@ void Today::loadPlugins() {
- // extra list for plugins that exclude themself from periodic refresh
- QMap<QString, TodayPlugin> pluginListRefreshExclude;
-
+ init();
QValueList<TodayPlugin>::Iterator tit;
@@ -168,6 +161,2 @@ void Today::loadPlugins() {
for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) {
- if ( (*tit).excludeRefresh ) {
- pluginListRefreshExclude.insert( (*tit).name , (*tit) );
- qDebug( "Found a plugin that does not want refresh feature" );
- } else {
(*tit).guiBox->hide();
@@ -178,3 +167,2 @@ void Today::loadPlugins() {
}
- }
pluginList.clear();
@@ -191,3 +179,2 @@ void Today::loadPlugins() {
for ( it = list.begin(); it != list.end(); ++it ) {
-// TodayPluginInterface *iface = 0;
QInterfacePtr<TodayPluginInterface> iface;
@@ -200,14 +187,2 @@ void Today::loadPlugins() {
- // 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 ) ) {
- layout->addWidget( pluginListRefreshExclude[(*it)].guiBox );
- pluginList.append( pluginListRefreshExclude[(*it)] );
- } else {
- tempList.insert( pluginListRefreshExclude[(*it)].name, pluginListRefreshExclude[(*it)] );
- }
- } else {
-
TodayPlugin plugin;
@@ -241,3 +216,3 @@ void Today::loadPlugins() {
// not sure if that is good .-)
- sv->setMinimumHeight( 10 );
+ sv->setMinimumHeight( 12 );
sv->setResizePolicy( QScrollView::AutoOneFit );
@@ -265,3 +240,2 @@ void Today::loadPlugins() {
}
- }
} else {
@@ -372,2 +346,3 @@ void Today::startConfig() {
void Today::refresh() {
+
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 @@
*
- * copyright : (c) 2002 by Maximilian Reiß
+ * copyright : (c) 2002,2003 by Maximilian Reiß
* email : harlekin@handhelds.org