KPrinter::setOrientation disables the orientation group in the setup dlg

Reinhold Kainhofer reinhold at kainhofer.com
Sun Jul 24 16:42:53 BST 2005


Hi guys,
In KOrganizer we have several different print styles, each with a different 
default orientation. E.g. the time table week view should by default printed 
in landscape, while the filofax week view should by default be printed in 
portrait, etc. So depending on the chosen print style, a different default 
orientation needs to be set for the printer.

Now, I use mPrinter->setOrientation(..) to set this default orientation, and 
then call the mPrinter->setup dialog. Although I have set the orientation to 
a default, I also want the user to be able to change this in the "Properties" 
dlg of the printer. However, it seems that as soon as I use setOrientation, 
the Orientation group in the printer properties dialog will be disabled. 

Is there any way around this problem (i.e. set a default orientation depending 
on the print tyle, but let the user later on still change it)?

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna, Austria
email: reinhold at kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at
 * K Desktop Environment, http://www.kde.org/, KOrganizer / KPilot maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050724/56469866/attachment.sig>


More information about the kde-core-devel mailing list