From 36f469bdb1c705f0082610a4fe9fd88b90accd24 Mon Sep 17 00:00:00 2001 From: John Layt Date: Mon, 14 May 2012 20:17:16 +0100 Subject: QtPrintSupport - Modify Platform Plugin QPrinterInfo api Change the way the printsupport plugin creates QPrinterInfo objects, provide platform api to return a named printer, and expose this as static public api in QPrinterInfo. Only the Mac plugin used the old api, the other plugins will have direct support added in separate commits, but will use the default implementation for now. Change-Id: I7d6b6556eb39919cfb15bc0e814afbaf13c5712c Reviewed-by: Bradley T. Hughes Reviewed-by: Lars Knoll --- src/printsupport/kernel/qprinterinfo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/printsupport/kernel/qprinterinfo.h') diff --git a/src/printsupport/kernel/qprinterinfo.h b/src/printsupport/kernel/qprinterinfo.h index d26b70dee0..8b3ab448c8 100644 --- a/src/printsupport/kernel/qprinterinfo.h +++ b/src/printsupport/kernel/qprinterinfo.h @@ -71,6 +71,7 @@ public: static QList availablePrinters(); static QPrinterInfo defaultPrinter(); + static QPrinterInfo printerInfo(const QString &printerName); private: explicit QPrinterInfo(const QString &name); @@ -78,6 +79,7 @@ private: private: friend class QPlatformPrinterSupport; friend class QWindowsPrinterSupport; + friend class QCocoaPrinterSupport; Q_DECLARE_PRIVATE(QPrinterInfo) QScopedPointer d_ptr; }; -- cgit v1.2.3