[Kde-print-devel] Small patch

Albert Astals Cid aacid at kde.org
Sun May 13 17:03:09 CEST 2007


Hi, this patch converts 

KDEPRINT_EXPORT KPrinter::PageSize pageNameToPageSize(const QString& name);

to

KDEPRINT_EXPORT KPrinter::PageSize pageNameToPageSize(const QString& name, 
bool *ok = 0);

So one can know if the name could be interpret to something or not (given that 
KPrinter::PageSize does not have an "invalid" pagesize and that this function 
returns KPrinter::A4 when does not "understand" the name string.

Also removes the rangeToSize function that nobody uses and that does nothing.

Ok to commit tomorrow?

Albert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kprinter.patch
Type: text/x-diff
Size: 1881 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-print-devel/attachments/20070513/ab972052/attachment.bin 


More information about the Kde-print-devel mailing list