Commit e81ecccc authored by Michael Winkelmann's avatar Michael Winkelmann

Improved Api for Qml Presentation System and fixed Layout issues

parent c982f9f6
This diff is collapsed.
......@@ -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:
......
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