Merge lp://staging/~stefan-schwarzburg/qreator/qreator_printing into lp://staging/qreator

Proposed by Schwarzburg
Status: Merged
Merged at revision: 109
Proposed branch: lp://staging/~stefan-schwarzburg/qreator/qreator_printing
Merge into: lp://staging/qreator
Diff against target: 255 lines (+85/-15) (has conflicts)
2 files modified
data/ui/QreatorWindow.ui (+19/-0)
qreator/QreatorWindow.py (+66/-15)
Text conflict in qreator/QreatorWindow.py
To merge this branch: bzr merge lp://staging/~stefan-schwarzburg/qreator/qreator_printing
Reviewer Review Type Date Requested Status
David Planella Approve
Review via email: mp+135636@code.staging.launchpad.net

Description of the change

This branch adds basic printing capability to qreator.

A "print" icon is added to the bottom toolbar. Clicking will open the native print dialog.

"Basic" printing because: the code does not customize the pagesize, resolution, etc... But the defaults should be sane enough.

The icon used is: printer-symbolic anthough we agree that this is not the nicest icon :-)

To post a comment you must log in.
Revision history for this message
David Planella (dpm) wrote :

It looks good to me, thanks!

Just a couple of remarks:

* Why is 'credits' replaced with 'thecredits', was it clashing with some keyword or some other variable?

  thecredits = _("translator-credits").replace('https', 'http')

* No need to change anything or resubmit the merge proposal now, but in the future, would you mind leving out changes such as whitespace and minor fixes from merge proposals? It makes the diff a lot bigger and makes it difficult to concentrate on reviewing the actual feature. I'm happy for you to commit these minor fixes to trunk directly without review, so that they can get out of the way in the diffs from merge proposals.

Thanks!

review: Needs Information
Revision history for this message
Schwarzburg (stefan-schwarzburg) wrote :

> It looks good to me, thanks!
>
> Just a couple of remarks:
>
> * Why is 'credits' replaced with 'thecredits', was it clashing with some
> keyword or some other variable?
>
> thecredits = _("translator-credits").replace('https', 'http')
>

Yes, credits was clashing. The error message from pylint is: "Redefining built-in 'credits'".
I thought (although this was not the best branch to do it), that we should get rid of ALL pylint and pep8 warnings and errors, so that everything will be easier with the test-suit.

> * No need to change anything or resubmit the merge proposal now, but in the
> future, would you mind leving out changes such as whitespace and minor fixes
> from merge proposals? It makes the diff a lot bigger and makes it difficult to
> concentrate on reviewing the actual feature. I'm happy for you to commit these
> minor fixes to trunk directly without review, so that they can get out of the
> way in the diffs from merge proposals.
>

Sure, sorry.

> Thanks!

Revision history for this message
David Planella (dpm) wrote :

Al 23/11/12 14:06, En/na Schwarzburg ha escrit:
>> It looks good to me, thanks!
>>
>> Just a couple of remarks:
>>
>> * Why is 'credits' replaced with 'thecredits', was it clashing with some
>> keyword or some other variable?
>>
>> thecredits = _("translator-credits").replace('https', 'http')
>>
>
> Yes, credits was clashing. The error message from pylint is: "Redefining built-in 'credits'".
> I thought (although this was not the best branch to do it), that we should get rid of ALL pylint and pep8 warnings and errors, so that everything will be easier with the test-suit.
>

Makes sense. Just nit-picking (I should have actually chosen that name
myself), but before merging, would you mind renaming the variable to
'translator_credits'? Thanks

>> * No need to change anything or resubmit the merge proposal now, but in the
>> future, would you mind leving out changes such as whitespace and minor fixes
>> from merge proposals? It makes the diff a lot bigger and makes it difficult to
>> concentrate on reviewing the actual feature. I'm happy for you to commit these
>> minor fixes to trunk directly without review, so that they can get out of the
>> way in the diffs from merge proposals.
>>
>
> Sure, sorry.
>

No worries :).

Cheers,
David.

 review approve

review: Approve
155. By Schwarzburg

renamed thecredits to translator_credits

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: