Commit 27c4f18d authored by Michael Winkelmann's avatar Michael Winkelmann

Remove StackLayoutStrategy stub

parent 6379b703
......@@ -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)
{
}
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment