From 44f7df439f729aff50f9d1b9dbba06391f151604 Mon Sep 17 00:00:00 2001 From: John Layt Date: Mon, 14 May 2012 21:02:13 +0100 Subject: QtPrintSupport - Add QPrinterInfo api for more printer details A previous commit changed the Mac behaviour for printerName() from returning the CUPS Description to returning the CUPS Name. In case anyone was relying on this for a human-readable name add new api to return the CUPS Description. Also add the Location and Make and Model which will be used in the Unix print dialog instead of directly calling CUPS. Change-Id: I9901bf8d6368466adf111580f5db5a3f01ca9170 Reviewed-by: Teemu Katajisto Reviewed-by: Bradley T. Hughes Reviewed-by: Lars Knoll Reviewed-by: John Layt --- src/printsupport/kernel/qprinterinfo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/printsupport/kernel/qprinterinfo.h') diff --git a/src/printsupport/kernel/qprinterinfo.h b/src/printsupport/kernel/qprinterinfo.h index 8b3ab448c8..634b68ceb0 100644 --- a/src/printsupport/kernel/qprinterinfo.h +++ b/src/printsupport/kernel/qprinterinfo.h @@ -65,8 +65,13 @@ public: QPrinterInfo &operator=(const QPrinterInfo &other); QString printerName() const; + QString description() const; + QString location() const; + QString makeAndModel() const; + bool isNull() const; bool isDefault() const; + QList supportedPaperSizes() const; static QList availablePrinters(); -- cgit v1.2.3