Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Calendar Support
Commits
99fb7ba4
Commit
99fb7ba4
authored
Jul 14, 2021
by
Glen Ditchfield
🐛
Browse files
Tweak headers
parent
c15694cd
Pipeline
#70686
skipped
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/printing/calprintpluginbase.cpp
View file @
99fb7ba4
...
...
@@ -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
::
Align
VCenter
,
str
);
p
.
drawText
(
box
,
Qt
::
Align
H
Center
|
Qt
::
Align
Top
,
str
);
p
.
setFont
(
oldfont
);
}
...
...
src/printing/calprintpluginbase.h
View file @
99fb7ba4
...
...
@@ -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 2
0
// subheader height, for all orientations
#define SUBHEADER_HEIGHT 2
8
// 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment