author | harlekin <harlekin> | 2002-09-18 09:52:51 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-18 09:52:51 (UTC) |
commit | 15ecc4aa71878039ad40ce270fae06282d8e98c2 (patch) (unidiff) | |
tree | 1b1cae7b89bdd3960da222542e99c05332610231 /core/pim/today/plugins | |
parent | 01d31aeaa8d513bde8237a07ea0a48ac1b85c3c0 (diff) | |
download | opie-15ecc4aa71878039ad40ce270fae06282d8e98c2.zip opie-15ecc4aa71878039ad40ce270fae06282d8e98c2.tar.gz opie-15ecc4aa71878039ad40ce270fae06282d8e98c2.tar.bz2 |
reload plugins now on config change
-rw-r--r-- | core/pim/today/plugins/datebook/datebookevent.cpp | 4 | ||||
-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginwidget.cpp | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp index 1caf061..d4e8e1e 100644 --- a/core/pim/today/plugins/datebook/datebookevent.cpp +++ b/core/pim/today/plugins/datebook/datebookevent.cpp | |||
@@ -30,6 +30,8 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | |||
30 | WFlags fl) : | 30 | WFlags fl) : |
31 | OClickableLabel(parent,name,fl), event(ev) { | 31 | OClickableLabel(parent,name,fl), event(ev) { |
32 | 32 | ||
33 | setAlignment( AlignTop ); | ||
34 | |||
33 | QString msg; | 35 | QString msg; |
34 | 36 | ||
35 | Config config( "qpe" ); | 37 | Config config( "qpe" ); |
@@ -90,8 +92,6 @@ QString DateBookEvent::ampmTime( QTime tm ) { | |||
90 | } | 92 | } |
91 | 93 | ||
92 | 94 | ||
93 | //extern QPEApplication *todayApp; | ||
94 | |||
95 | /* | 95 | /* |
96 | * starts the edit dialog as known from datebook | 96 | * starts the edit dialog as known from datebook |
97 | */ | 97 | */ |
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp index e4667ae..7948656 100644 --- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp | |||
@@ -59,6 +59,8 @@ void DatebookPluginWidget::getDates() { | |||
59 | QDate date = QDate::currentDate(); | 59 | QDate date = QDate::currentDate(); |
60 | 60 | ||
61 | QVBoxLayout* layoutDates = new QVBoxLayout( this ); | 61 | QVBoxLayout* layoutDates = new QVBoxLayout( this ); |
62 | layoutDates->setSpacing( 1 ); | ||
63 | layoutDates->setMargin( 1 ); | ||
62 | 64 | ||
63 | if ( db ) { | 65 | if ( db ) { |
64 | delete db; | 66 | delete db; |
@@ -105,8 +107,8 @@ void DatebookPluginWidget::getDates() { | |||
105 | noEvents->setText( QObject::tr( "No appointments today" ) ); | 107 | noEvents->setText( QObject::tr( "No appointments today" ) ); |
106 | layoutDates->addWidget( noEvents ); | 108 | layoutDates->addWidget( noEvents ); |
107 | } | 109 | } |
108 | 110 | //layoutDates->addStretch(0); | |
109 | layoutDates->addItem( new QSpacerItem( 1,1, QSizePolicy::Minimum, QSizePolicy::Expanding ) ); | 111 | // layoutDates->addItem( new QSpacerItem( 1,1, QSizePolicy::Minimum, QSizePolicy::Expanding ) ); |
110 | 112 | ||
111 | // how often refresh - later have qcop update calls in *db | 113 | // how often refresh - later have qcop update calls in *db |
112 | //QTimer::singleShot( 20*1000, this , SLOT( getDates() ) ); | 114 | //QTimer::singleShot( 20*1000, this , SLOT( getDates() ) ); |