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
Michael Winkelmann
QmlSlidePrinter
Commits
e81ecccc
Commit
e81ecccc
authored
Aug 15, 2018
by
Michael Winkelmann
Browse files
Improved Api for Qml Presentation System and fixed Layout issues
parent
c982f9f6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
qmlprinter.cpp
View file @
e81ecccc
This diff is collapsed.
Click to expand it.
qmlprinter.h
View file @
e81ecccc
...
...
@@ -18,6 +18,7 @@
#include <QAbstractTextDocumentLayout>
#include <QTextDocument>
#include <QPrinterInfo>
class
QmlPrinter
:
public
QObject
{
Q_OBJECT
...
...
@@ -35,12 +36,12 @@ private:
bool
isCustomPrintItem
(
const
QString
&
item
);
void
changePrinterOrientation
(
QPrinter
&
printer
,
const
int
&
width
,
const
int
&
height
);
public:
explicit
QmlPrinter
(
QObject
*
parent
=
0
);
virtual
~
QmlPrinter
();
bool
printPDF
(
const
QString
&
location
,
QList
<
QQuickItem
*>
items
,
bool
showPDF
=
false
);
bool
print
(
const
QPrinterInfo
&
info
,
QList
<
QQuickItem
*>
items
);
bool
printPdf
(
const
QString
&
location
,
QQuickItem
*
presentation
);
void
addPrintableItem
(
const
QString
&
item
);
signals:
...
...
Write
Preview
Supports
Markdown
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