summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qplatformprintersupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/printsupport/kernel/qplatformprintersupport.h')
-rw-r--r--src/printsupport/kernel/qplatformprintersupport.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/printsupport/kernel/qplatformprintersupport.h b/src/printsupport/kernel/qplatformprintersupport.h
index e922b5fb25..018ec05c03 100644
--- a/src/printsupport/kernel/qplatformprintersupport.h
+++ b/src/printsupport/kernel/qplatformprintersupport.h
@@ -53,6 +53,7 @@
#include <QtPrintSupport/qprinter.h>
#include <QtCore/qlist.h>
+#include <QtCore/qhash.h>
QT_BEGIN_HEADER
@@ -60,6 +61,8 @@ QT_BEGIN_NAMESPACE
#ifndef QT_NO_PRINTER
+typedef QHash<QString, QString> PrinterOptions;
+
class QPrintEngine;
class Q_PRINTSUPPORT_EXPORT QPlatformPrinterSupport
@@ -76,6 +79,9 @@ public:
virtual QPrinterInfo defaultPrinter();
virtual QPrinterInfo printerInfo(const QString &printerName);
+ virtual QString printerOption(const QPrinterInfo &printer, const QString &key) const;
+ virtual PrinterOptions printerOptions(const QPrinterInfo &printer) const;
+
static QPrinter::PaperSize convertQSizeFToPaperSize(const QSizeF &sizef);
static QSizeF convertPaperSizeToQSizeF(QPrinter::PaperSize paperSize);