--nextPart10838110.9Ub1cMzIms Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 24 Sep 2007, Alex Merry wrote: > I have here a working KPrintPreview class. It's a KDialog, and is > used as follows: > > QPrinter printer; > KPrintPreview preview(&printer, this); // where "this" is a QWidget > doSomePrinting(printer); > preview.exec(); > I temporarily named the library kdeprint2, so as not to interfere > with kdeprint. I'm going to put it into kutils, if that's OK. It seems stupid to have=20 a library just for one class. If people think it should go elsewhere=20 (such as kdeui), then I don't object to it being moved. Bear in mind=20 that it depends on libkparts. I don't have time to do any porting. It should be a reasonably=20 straightforward job if the application is well-designed. Look at=20 http://doc.trolltech.com/4.3/printing.html to see how the Qt4 printing=20 system works. Basically, use QPrinter rather than KPrinter, and=20 QPrintDialog instead of KPrinter::setup(). Also, until there is a method for getting a QPrintDialog with an extra=20 widget, you'll have to disable any additional pages. They might=20 require more involved porting anyway. If anyone is up for adding at least an API for a customised QPrintDialog=20 today, that would be great. Then applications can be ported and=20 hopefully start working when it is implemented (and when using Qt=20 4.3.2+). Alex =2D-=20 KDE: http://www.kde.org Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org --nextPart10838110.9Ub1cMzIms Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHBj+2BRauKLutZ9ARAtKFAJ49X4ZEDMJaFQpXCW5PDgNz1hGDPwCfd0D3 j97Yn0AQAO1RFkV/RhsY+5o= =7TUm -----END PGP SIGNATURE----- --nextPart10838110.9Ub1cMzIms--