Commit 6f97d180 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Fix the split week printout

On the first page the footer was placed at the middle of the page, and
the header's year was almost entirely but not completely hidden by the
timetable.
parent b660881e
Pipeline #66378 passed with stage
in 4 minutes and 39 seconds
......@@ -1162,7 +1162,7 @@ void CalPrintWeek::print(QPainter &p, int width, int height)
drawSplitHeaderRight(p, fromWeek, curWeek, QDate(), width, hh);
drawTimeTable(p, fromWeek, endLeft, false, mStartTime, mEndTime, weekBox, mIncludeDescription, mExcludeTime, mExcludeConfidential, mExcludePrivate);
if (mPrintFooter) {
drawFooter(p, weekBox1);
drawFooter(p, footerBox);
}
mPrinter->newPage();
drawSplitHeaderRight(p, fromWeek, curWeek, QDate(), width, hh);
......
......@@ -2216,7 +2216,7 @@ void CalPrintPluginBase::drawSplitHeaderRight(QPainter &p, const QDate &fd, cons
}
title += QString::number(fd.year());
p.drawText(0, lineSpacing, width, lineSpacing, Qt::AlignRight | Qt::AlignTop, title);
p.drawText(0, lineSpacing + padding(), width, lineSpacing, Qt::AlignRight | Qt::AlignTop, title);
p.setFont(oldFont);
}
......
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