D16285: Remember printing option and print range in the print dialog

Yuri Chornoivan noreply at phabricator.kde.org
Sun Oct 21 19:12:12 BST 2018


yurchor added inline comments.

INLINE COMMENTS

> document.cpp:652
> +                        }
> +                        else if( printElement.tagName() == QLatin1String("printRange") )
> +                        {

Is it possible to keep the consistent formatting with other if's?

It seems that in other code it is "if ( condition )", but here it is "if( condition )" (without space between "if" and "(".

> document.cpp:1245
> +    // create printing node
> +    if( m_printRangeOption != QPrinter::AllPages)
> +    {

Same here.

> part.cpp:3241
>          // Set the available Print Range
> +        if(m_document->printFrom() == -1 || m_document->printTo() == -1)
> +        {

Similar here.

> part.cpp:3275
> +
> +            if( rangeOption == QPrinter::PageRange )
> +            {

Same here.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D16285

To: ahmadosama, #okular
Cc: yurchor, broulik, ngraham, okular-devel, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20181021/6381cd02/attachment-0001.html>


More information about the Okular-devel mailing list