summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
Unidiff
Diffstat (limited to 'core/pim/today/plugins/datebook/datebookpluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginwidget.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
index 896d41d..781e3a4 100644
--- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
@@ -47,2 +47,3 @@ DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name )
47 getDates(); 47 getDates();
48 m_layoutDates->addStretch(5);
48} 49}
@@ -67,3 +68,11 @@ void DatebookPluginWidget::refresh() {
67 m_eventsList.clear(); 68 m_eventsList.clear();
69
70 if ( m_layoutDates ) {
71 delete m_layoutDates;
72 }
73 m_layoutDates = new QVBoxLayout( this );
74 m_layoutDates->setAutoAdd( true );
75
68 getDates(); 76 getDates();
77 m_layoutDates->addStretch(5);
69} 78}
@@ -91,3 +100,3 @@ void DatebookPluginWidget::getDates() {
91 QObject::connect ( l, SIGNAL( editEvent( const Event & ) ), l, SLOT( editEventSlot( const Event & ) ) ); 100 QObject::connect ( l, SIGNAL( editEvent( const Event & ) ), l, SLOT( editEventSlot( const Event & ) ) );
92 } else if ( QDateTime::currentDateTime() <= (*it).event().end() ) { 101 } else if ( QDateTime::currentDateTime() <= (*it).event().end() || (*it).event().start().date() != date ) {
93 count++; 102 count++;
@@ -115 +124,2 @@ void DatebookPluginWidget::getDates() {
115 124
125