Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KWordQuiz
Commits
c4885895
Commit
c4885895
authored
Oct 26, 2022
by
Nicolas Fella
Browse files
Port away from QPrinter::setOrientation
parent
71487a63
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kwqtableview.cpp
View file @
c4885895
...
...
@@ -116,7 +116,7 @@ void KWQTableView::createPages(QPrinter *printer, QTextDocument *textDoc, bool s
int
myDpi
=
printer
->
logicalDpiY
();
if
(
Prefs
::
printStyle
()
==
Prefs
::
EnumPrintStyle
::
Flashcard
)
{
printer
->
setOrientation
(
QP
rinter
::
Landscape
);
printer
->
set
Page
Orientation
(
QP
ageLayout
::
Landscape
);
int
cardWidth
=
qRound
(
5
*
qreal
(
myDpi
));
int
cardHeight
=
qRound
(
3
*
qreal
(
myDpi
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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