QtPrintSupport - Add QPrinterInfo api for more printer details
authorJohn Layt <jlayt@kde.org>
Mon, 14 May 2012 20:02:13 +0000 (21:02 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 May 2012 21:48:15 +0000 (23:48 +0200)
commit44f7df439f729aff50f9d1b9dbba06391f151604
treefbe08fcf66c619b0677d6be33b8b6fbc10d4002b
parentb7104d6645e25892d85e6e0aad6ddebbd2babdc0
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 <teemu.katajisto@digia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: John Layt <jlayt@kde.org>
src/plugins/platforms/cocoa/qcocoaprintersupport.mm
src/printsupport/kernel/qprinterinfo.cpp
src/printsupport/kernel/qprinterinfo.h
src/printsupport/kernel/qprinterinfo_p.h
tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp