diff options
author | John Layt <jlayt@kde.org> | 2013-12-11 16:37:03 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-17 13:45:55 +0100 |
commit | d13195584e3ec4b3c30b626c360e81e437757427 (patch) | |
tree | 5b1be5d1bbe34ef9689a16331ffddb2de4d91956 /src/plugins/printsupport/cups/qcupsprintengine_p.h | |
parent | 9e29fab38df831f33385ee25bff235a620aa20d5 (diff) |
QPrintEngine - Switch Cups to QPlaformPrintDevice
Use QPlatformPrintDevice in the Cups print engine for all device
specific code.
Change-Id: Ic1f5f8b4010a9958c320f3c0c727cf1bd1a70c65
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/plugins/printsupport/cups/qcupsprintengine_p.h')
-rw-r--r-- | src/plugins/printsupport/cups/qcupsprintengine_p.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/plugins/printsupport/cups/qcupsprintengine_p.h b/src/plugins/printsupport/cups/qcupsprintengine_p.h index bc85205d50..393fef42a3 100644 --- a/src/plugins/printsupport/cups/qcupsprintengine_p.h +++ b/src/plugins/printsupport/cups/qcupsprintengine_p.h @@ -61,9 +61,8 @@ #include <QtGui/qpaintengine.h> #include <private/qpaintengine_p.h> +#include <private/qprintdevice_p.h> #include <private/qprintengine_pdf_p.h> -#include <QtPrintSupport/qprintengine.h> -#include <private/qcups_p.h> QT_BEGIN_NAMESPACE @@ -95,18 +94,15 @@ public: bool openPrintDevice(); void closePrintDevice(); - void updatePaperSize(); - void setPageSize(QPageSize::PageSizeId pageSizeId); - void setPaperName(const QString &name); - void setCupsDefaults(); - void setPageSize(const QString &key, const QString &name); - private: Q_DISABLE_COPY(QCupsPrintEnginePrivate) + void setupDefaultPrinter(); + void changePrinter(const QString &newPrinter); + void setPageSize(const QPageSize &pageSize); + + QPrintDevice m_printDevice; QStringList cupsOptions; - QRect cupsPaperRect; - QRect cupsPageRect; QString cupsTempFile; }; |