Commit 350fd124 authored by tanelipe's avatar tanelipe

ListView printing and more properties to text/rect

parent 7df92d25
This diff is collapsed.
...@@ -34,12 +34,14 @@ private: ...@@ -34,12 +34,14 @@ private:
bool inherits(const QMetaObject *metaObject, const QString &name); bool inherits(const QMetaObject *metaObject, const QString &name);
bool isCustomPrintItem(const QString &item); bool isCustomPrintItem(const QString &item);
void changePrinterOrientation(QPrinter& printer, const int& width, const int& height);
public: public:
explicit QmlPrinter(QObject *parent = 0); explicit QmlPrinter(QObject *parent = 0);
virtual ~QmlPrinter(); virtual ~QmlPrinter();
void printPDF(const QString &location, QQuickItem *item, bool showPDF = false); bool printPDF(const QString &location, QList<QQuickItem *> items, bool showPDF = false);
void print(const QPrinterInfo& info, QQuickItem *item); bool print(const QPrinterInfo& info, QList<QQuickItem*> items);
void addPrintableItem(const QString &item); void addPrintableItem(const QString &item);
signals: 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