author | umopapisdn <umopapisdn> | 2003-03-23 20:49:17 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2003-03-23 20:49:17 (UTC) |
commit | 90772042f0d726149093675cede488676a94562b (patch) (unidiff) | |
tree | 853a03e23255c8b8fdfd74cc284cbd02663c94a7 /core | |
parent | b5606a63c9f3524f9475b6ac79f0b6bcc7162fa6 (diff) | |
download | opie-90772042f0d726149093675cede488676a94562b.zip opie-90772042f0d726149093675cede488676a94562b.tar.gz opie-90772042f0d726149093675cede488676a94562b.tar.bz2 |
Bugfix: (bug #0000211) Events ending at mat the following day. Fix for weeklistview.
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index 9089fe9..e8e12ba 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp | |||
@@ -205,16 +205,18 @@ DateBookWeekLstView::DateBookWeekLstView(QValueList<EffectiveEvent> &ev, | |||
205 | const QDateTime &, | 205 | const QDateTime &, |
206 | const QString &))); | 206 | const QString &))); |
207 | layout->addWidget(hdr); | 207 | layout->addWidget(hdr); |
208 | 208 | ||
209 | // Events | 209 | // Events |
210 | while ( (*it).date().dayOfWeek() == dayOrder[i] && it!=ev.end() ) { | 210 | while ( (*it).date().dayOfWeek() == dayOrder[i] && it!=ev.end() ) { |
211 | if(!((*it).end().hour()==(*it).start().hour() && (*it).end().minute()==(*it).start().minute())) {// Skip effective events with no duration. (i.e ending at 00:00) | ||
211 | DateBookWeekLstEvent *l=new DateBookWeekLstEvent(*it,this); | 212 | DateBookWeekLstEvent *l=new DateBookWeekLstEvent(*it,this); |
212 | layout->addWidget(l); | 213 | layout->addWidget(l); |
213 | connect (l, SIGNAL(editEvent(const Event &)), | 214 | connect (l, SIGNAL(editEvent(const Event &)), |
214 | this, SIGNAL(editEvent(const Event &))); | 215 | this, SIGNAL(editEvent(const Event &))); |
216 | } | ||
215 | it++; | 217 | it++; |
216 | } | 218 | } |
217 | 219 | ||
218 | layout->addItem(new QSpacerItem(1,1, QSizePolicy::Minimum, QSizePolicy::Expanding)); | 220 | layout->addItem(new QSpacerItem(1,1, QSizePolicy::Minimum, QSizePolicy::Expanding)); |
219 | } | 221 | } |
220 | } | 222 | } |