Commit 99fb7ba4 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Tweak headers

parent c15694cd
Pipeline #70686 skipped
......@@ -451,7 +451,7 @@ void CalPrintPluginBase::drawSubHeaderBox(QPainter &p, const QString &str, QRect
drawShadedBox(p, BOX_BORDER_WIDTH, QColor(232, 232, 232), box);
QFont oldfont(p.font());
p.setFont(QFont(QStringLiteral("sans-serif"), 10, QFont::Bold));
p.drawText(box, Qt::AlignCenter | Qt::AlignVCenter, str);
p.drawText(box, Qt::AlignHCenter | Qt::AlignTop, str);
p.setFont(oldfont);
}
......
......@@ -24,9 +24,9 @@
class PrintCellItem;
class QWidget;
#define PORTRAIT_HEADER_HEIGHT 72 // header height, for portrait orientation
#define PORTRAIT_HEADER_HEIGHT 80 // header height, for portrait orientation
#define LANDSCAPE_HEADER_HEIGHT 54 // header height, for landscape orientation
#define SUBHEADER_HEIGHT 20 // subheader height, for all orientations
#define SUBHEADER_HEIGHT 28 // subheader height, for all orientations
#define PORTRAIT_FOOTER_HEIGHT 16 // footer height, for portrait orientation
#define LANDSCAPE_FOOTER_HEIGHT 14 // footer height, for landscape orientation
#define MARGIN_SIZE 36 // margins, for all orientations
......
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