Changeset View
Changeset View
Standalone View
Standalone View
src/memorycalendar.cpp
Show First 20 Lines • Show All 662 Lines • ▼ Show 20 Line(s) | 662 | Event::List MemoryCalendar::rawEvents(const QDate &start, | |||
---|---|---|---|---|---|
663 | const QDate &end, | 663 | const QDate &end, | ||
664 | const QTimeZone &timeZone, | 664 | const QTimeZone &timeZone, | ||
665 | bool inclusive) const | 665 | bool inclusive) const | ||
666 | { | 666 | { | ||
667 | Event::List eventList; | 667 | Event::List eventList; | ||
668 | const auto ts = timeZone.isValid() ? timeZone : this->timeZone(); | 668 | const auto ts = timeZone.isValid() ? timeZone : this->timeZone(); | ||
669 | QDateTime st(start, QTime(0, 0, 0), ts); | 669 | QDateTime st(start, QTime(0, 0, 0), ts); | ||
670 | QDateTime nd(end, QTime(23, 59, 59, 999), ts); | 670 | QDateTime nd(end, QTime(23, 59, 59, 999), ts); | ||
671 | QDateTime yesterStart = st.addDays(-1); | | |||
672 | 671 | | |||
673 | // Get non-recurring events | 672 | // Get non-recurring events | ||
674 | QHashIterator<QString, Incidence::Ptr>i(d->mIncidences[Incidence::TypeEvent]); | 673 | QHashIterator<QString, Incidence::Ptr>i(d->mIncidences[Incidence::TypeEvent]); | ||
675 | Event::Ptr event; | 674 | Event::Ptr event; | ||
676 | while (i.hasNext()) { | 675 | while (i.hasNext()) { | ||
677 | i.next(); | 676 | i.next(); | ||
678 | event = i.value().staticCast<Event>(); | 677 | event = i.value().staticCast<Event>(); | ||
679 | QDateTime rStart = event->dtStart(); | 678 | QDateTime rStart = event->dtStart(); | ||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |