Commit 11632007 authored by Volker Krause's avatar Volker Krause
Browse files

Adapt to RecurrenceActions API changes

parent d7153d67
......@@ -115,7 +115,7 @@ void EventView::setHolidayRegion(const KHolidays::HolidayRegionPtr &holidayRegio
int EventView::showMoveRecurDialog(const Incidence::Ptr &inc, const QDate &date)
{
KDateTime dateTime(date, KDateTime::LocalZone);
QDateTime dateTime(date, QTime(0, 0), Qt::LocalTime);
int availableOccurrences = KCalUtils::RecurrenceActions::availableOccurrences(inc, dateTime);
......
......@@ -562,7 +562,7 @@ QVector<QPixmap> IncidenceMonthItem::icons() const
} else if ((mIsTodo || mIsJournal) && icons.contains(mIsTodo ?
EventView::TaskIcon :
EventView::JournalIcon)) {
KDateTime occurrenceDateTime = mIncidence->dateTime(Incidence::RoleRecurrenceStart);
QDateTime occurrenceDateTime = KCalCore::k2q(mIncidence->dateTime(Incidence::RoleRecurrenceStart));
occurrenceDateTime.setDate(realStartDate());
const QString incidenceIconName = mIncidence->iconName(occurrenceDateTime);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment