QPrinter::setup()

Simon Rutishauser simon.rutishauser at web.de
Tue Oct 19 13:02:38 CEST 2004


I'll do that of course. Thanks. Thought it looked not like usual, but I 
did not know how to change that ;-)

Simon

On Tue, Oct 19, 2004 at 10:04:50AM +0200, Christian Ehrlicher wrote:
> No answer to your question, just a small note:
> Please create your patches with 'diff -u' (or 'cvs diff -u') so we can read
> the patch better (at least me ;-) )
> 
> Christian
> 
> > Just two hours after writing the first post I found the solution. It is 
> > quite weird nevertheless. devmode->dmDeviceName has to be initialized or 
> > the other settings in devmode won't be used.
> > 
> > I do the initialization via
> >    qt_strncpy(devmode->dmDeviceName, QString("").ucs2(), 32);
> > because the other ways I tried to do this it did not work at all. Can 
> > someone tell me how I can correctly initialize devmode->dmDeviceName 
> > which is a WCHAR[32] or unsigned short [32] array without using this 
> > ugly and stupid method?
> > 
> > Changed patch attached.
> > 
> > Simon
> 
> -- 
> GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
> +++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++
> 
> _______________________________________________
> kde-cygwin mailing list
> kde-cygwin at kde.org
> https://mail.kde.org/mailman/listinfo/kde-cygwin
> 

-- 


More information about the kde-cygwin mailing list