Commit 2ac1a783 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Sort printed journal entries by date

parent b48c27a3
Pipeline #68212 passed with stage
in 6 minutes and 33 seconds
......@@ -88,7 +88,7 @@ void CalPrintJournal::setDateRange(const QDate &from, const QDate &to)
void CalPrintJournal::print(QPainter &p, int width, int height)
int x = 0, y = 0;
KCalendarCore::Journal::List journals(mCalendar->journals());
KCalendarCore::Journal::List journals(mCalendar->journals(KCalendarCore::JournalSortDate, KCalendarCore::SortDirectionAscending));
if (mUseDateRange) {
const KCalendarCore::Journal::List allJournals = journals;
Supports Markdown
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