Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QmlSlidePrinter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Winkelmann
QmlSlidePrinter
Commits
27c4f18d
Commit
27c4f18d
authored
Nov 26, 2018
by
Michael Winkelmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove StackLayoutStrategy stub
parent
6379b703
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
20 deletions
+3
-20
qmlprinter.cpp
qmlprinter.cpp
+3
-13
qmlprinter.h
qmlprinter.h
+0
-7
No files found.
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
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