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
27c4f18d
Commit
27c4f18d
authored
Nov 26, 2018
by
Michael Winkelmann
Browse files
Remove StackLayoutStrategy stub
parent
6379b703
Changes
2
Hide whitespace changes
Inline
Side-by-side
qmlprinter.cpp
View file @
27c4f18d
...
...
@@ -47,6 +47,9 @@ bool QmlPrinter::printPdf(const QString &location, QQuickItem *rootItem) {
changePrinterOrientation
(
printer
,
width
,
height
);
SubItemStrategy
strategy
;
///@todo create other strategies for generating a PDF from a QuickItem,
/// e.g. by using
/*
PrintStrategy strategy = [](QQuickItem* root, ItemList& items, ItemList& masterItems) {
items.push_back({ root, QVariantMap() });
...
...
@@ -399,16 +402,3 @@ bool SubItemStrategy::operator()(QQuickItem *rootItem, ItemList &items, ItemList
}
return
!
items
.
empty
();
}
StackLayoutStrategy
::
StackLayoutStrategy
(
const
QVariantMap
&
options
)
:
m_options
(
options
)
{
}
bool
StackLayoutStrategy
::
operator
()(
QQuickItem
*
rootItem
,
ItemList
&
items
,
ItemList
&
masterItems
)
{
}
qmlprinter.h
View file @
27c4f18d
...
...
@@ -25,13 +25,6 @@ struct SubItemStrategy {
bool
operator
()(
QQuickItem
*
,
ItemList
&
,
ItemList
&
);
};
struct
StackLayoutStrategy
{
StackLayoutStrategy
(
QVariantMap
const
&
options
);
bool
operator
()(
QQuickItem
*
,
ItemList
&
,
ItemList
&
);
private:
QVariantMap
m_options
;
};
class
QmlPrinter
{
Q_GADGET
...
...
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