kprinter & qprinter

David Faure faure at kde.org
Tue Jan 9 14:32:42 GMT 2007


On Tuesday 09 January 2007 04:53, Cristian Tibirna wrote:
> On 8 January 2007 15:22, Boudewijn Rempt wrote:
> > On #koffice, we were discussing printing and one topic that came up was
> > "why does KPrinter wrap QPrinter instead of inheriting it?" The wrapper
> > hides some stuff, notably the setting of the outputformat (things like
> > printer.setOutputFormat(QPrinter::PdfFormat) seem impossible at the
> > moment).
> 
> I had the same question for Michael Goffioul when I took up maintainership. He 
> didn't remember very well, but main reason seemed to be lack of features in 
> QPrinter that were at first offered only in KPrinter.
> 
> My intention for KDE4 is definitely to go the "KPrinter is-a QPrinter" route.

Meanwhile it should be easy enough to add setOutputFormat to KPrinter...
It's simply new api in qprinter that kprinter doesn't wrap yet. If Boud needs it,
he could just add it there for now.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list