author | harlekin <harlekin> | 2003-03-23 15:17:55 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-23 15:17:55 (UTC) |
commit | 34d831699c7a7be4bd81cd7d7336b66b53ef78d9 (patch) (side-by-side diff) | |
tree | b38d3e4377bdc47e8a78c070af2ca2ac62e48d70 /core/pim/today/plugins/datebook | |
parent | fd1b86e8590b34efb38b82953e5bf897a8de1cdf (diff) | |
download | opie-34d831699c7a7be4bd81cd7d7336b66b53ef78d9.zip opie-34d831699c7a7be4bd81cd7d7336b66b53ef78d9.tar.gz opie-34d831699c7a7be4bd81cd7d7336b66b53ef78d9.tar.bz2 |
if multiple days are selected and only later is on still show all events on next days ,)
Diffstat (limited to 'core/pim/today/plugins/datebook') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginwidget.cpp | 12 |
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 ) getDates(); + m_layoutDates->addStretch(5); } @@ -67,3 +68,11 @@ void DatebookPluginWidget::refresh() { m_eventsList.clear(); + + if ( m_layoutDates ) { + delete m_layoutDates; + } + m_layoutDates = new QVBoxLayout( this ); + m_layoutDates->setAutoAdd( true ); + getDates(); + m_layoutDates->addStretch(5); } @@ -91,3 +100,3 @@ void DatebookPluginWidget::getDates() { QObject::connect ( l, SIGNAL( editEvent( const Event & ) ), l, SLOT( editEventSlot( const Event & ) ) ); - } else if ( QDateTime::currentDateTime() <= (*it).event().end() ) { + } else if ( QDateTime::currentDateTime() <= (*it).event().end() || (*it).event().start().date() != date ) { count++; @@ -115 +124,2 @@ void DatebookPluginWidget::getDates() { + |