summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins
Unidiff
Diffstat (limited to 'core/pim/today/plugins') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookevent.cpp4
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginwidget.cpp6
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() ) );