issue/8/ksnapshot #54

Συγχωνευμένα
MicheleC συγχώνευσε 1 υποβολές από issue/8/ksnapshot σε master 1 έτος πριν
deloptes σχολίασε 1 έτος πριν
Συνεργάτης

This fixes issue #8 (first commit)

the second one fixes the indentation.

If you approve, I would squash them.

This fixes issue #8 (first commit) the second one fixes the indentation. If you approve, I would squash them.
deloptes πρόσθεσε 2 υποβολές 1 έτος πριν
c4885a634f
KSnapshot: autocorrected indentations and formatting
deloptes πρόσθεσε τη σήμανση PR/rfc 1 έτος πριν
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Hi Emanoil,
I haven't studied the code yet, but I see lot of changes that are only tabs-space changes and make reviewing the patch more complex.
Although fixing the indentation is a good thing in general, it is fixing it against the TDE code guideline (which is not yet really enforced), so I would suggest leaving all unneceddary unchanged lines untouch and get the commits to focus on the code changes.
Could you rework the commits in that way?

Hi Emanoil, I haven't studied the code yet, but I see lot of changes that are only tabs-space changes and make reviewing the patch more complex. Although fixing the indentation is a good thing in general, it is fixing it against the TDE code guideline (which is not yet really enforced), so I would suggest leaving all unneceddary unchanged lines untouch and get the commits to focus on the code changes. Could you rework the commits in that way?
deloptes force-pushed issue/8/ksnapshot από το c4885a634f στο ae18ca9f1c 1 έτος πριν
deloptes σχολίασε 1 έτος πριν
Συντάκτης
Συνεργάτης

Hi Emanoil,
I haven't studied the code yet, but I see lot of changes that are only tabs-space changes and make reviewing the patch more complex.

I have splitted the commits in one that fixes the issue and another to correct the indentation
but now I removed the second, so have a look, please.

Although fixing the indentation is a good thing in general, it is fixing it against the TDE code guideline (which is not yet really enforced), so I would suggest leaving all unneceddary unchanged lines untouch and get the commits to focus on the code changes.

Actually I thought it is documented and I configured Eclipse based on the documentation, but anyway - we can discuss this in another thread.

> Hi Emanoil, > I haven't studied the code yet, but I see lot of changes that are only tabs-space changes and make reviewing the patch more complex. I have splitted the commits in one that fixes the issue and another to correct the indentation but now I removed the second, so have a look, please. > Although fixing the indentation is a good thing in general, it is fixing it against the TDE code guideline (which is not yet really enforced), so I would suggest leaving all unneceddary unchanged lines untouch and get the commits to focus on the code changes. Actually I thought it is documented and I configured Eclipse based on the documentation, but anyway - we can discuss this in another thread.
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Actually I thought it is documented and I configured Eclipse based on the documentation, but anyway - we can discuss this in another thread.

It is documented but not yet enforced, so usually we currently follow whatever format is in a file at the moment. There are still changes required in uncrustify (the formatting tool) before we can apply the code style automatically. I am slowly working on that task too :-)

> Actually I thought it is documented and I configured Eclipse based on the documentation, but anyway - we can discuss this in another thread. > It is documented but not yet enforced, so usually we currently follow whatever format is in a file at the moment. There are still changes required in uncrustify (the formatting tool) before we can apply the code style automatically. I am slowly working on that task too :-)
MicheleC ενέκρινε αυτές τις αλλαγές 1 έτος πριν
MicheleC άφησε ένα σχόλιο
Ιδιοκτήτης

Excellent fix!

Excellent fix!
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

I have splitted the commits in one that fixes the issue and another to correct the indentation
but now I removed the second, so have a look, please.

Wow, such a short and clean fix!
Clearly reviewing this last version is way quicker than reviewing the same thing mixed with indentation changes :-)

> I have splitted the commits in one that fixes the issue and another to correct the indentation but now I removed the second, so have a look, please. Wow, such a short and clean fix! Clearly reviewing this last version is way quicker than reviewing the same thing mixed with indentation changes :-)
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Can you rebase the commit on top of master before I merge? There was another commit in between and this PR is no longer of top.

Can you rebase the commit on top of master before I merge? There was another commit in between and this PR is no longer of top.
MicheleC αφαίρεσε το σήμα PR/rfc 1 έτος πριν
MicheleC το πρόσθεσε στο R14.1.0 release ορόσημο 1 έτος πριν
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

And could you also slightly reword the commit message by adding "Issue #8" in place of "#8". Something like this:

KSnapshot: fix Print orientation in ksnapshot cannot be selected. This resolves issue #8.

This will help the script that prepares the detail commit log, as far as I am aware.

And could you also slightly reword the commit message by adding "Issue #8" in place of "#8". Something like this: `KSnapshot: fix Print orientation in ksnapshot cannot be selected. This resolves issue #8.` This will help the script that prepares the detail commit log, as far as I am aware.
MicheleC πρόσθεσε μια νέα εξάρτηση 1 έτος πριν
SlavekB σχολίασε 1 έτος πριν
Ιδιοκτήτης

Once you edit the message in commit, do not forget to make rebase to the current head.

Once you edit the message in commit, do not forget to make rebase to the current head.
deloptes force-pushed issue/8/ksnapshot από το ae18ca9f1c στο 4ec69a7d08 1 έτος πριν
MicheleC συγχώνευσε την υποβολή 4ec69a7d08 σε master 1 έτος πριν
MicheleC διέγραψε το κλάδο issue/8/ksnapshot 1 έτος πριν
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

@deloptes
Thanks for rebasing, adjusting the commit and the fix :-)

@deloptes Thanks for rebasing, adjusting the commit and the fix :-)
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

After thinking about this for a while, I think this fix is not right. Although it allows to choose the printing orientation, it takes away the default selection and force the user to have to choose the orientation in most cases, since a lot of snapshot will probably use landscape mode.

Currently, setting the orientation in KPrinter has the side effect to lock the orientation to be fixed. I think a better fix would be to be able to set the preferred orientation without necessarily locking the selection.
I can prepare a PR for it if you ( @SlavekB, @blu.256, @deloptes ) agree with me. Btw, by memory I think there is a similar bug filed against kpdf, but I need to look it up.

After thinking about this for a while, I think this fix is not right. Although it allows to choose the printing orientation, it takes away the default selection and force the user to have to choose the orientation in most cases, since a lot of snapshot will probably use landscape mode. Currently, setting the orientation in KPrinter has the side effect to lock the orientation to be fixed. I think a better fix would be to be able to set the preferred orientation without necessarily locking the selection. I can prepare a PR for it if you ( @SlavekB, @blu.256, @deloptes ) agree with me. Btw, by memory I think there is a similar bug filed against kpdf, but I need to look it up.
SlavekB σχολίασε 1 έτος πριν
Ιδιοκτήτης

Yes, the ability to cleverly set the default orientation without locking the possibility to change it by the user was the first thing I think about. So yes, I agree with this idea.

Yes, the ability to cleverly set the default orientation without locking the possibility to change it by the user was the first thing I think about. So yes, I agree with this idea.

Εξεταστές

MicheleC ενέκρινε αυτές τις αλλαγές 1 έτος πριν
Το pull request έχει συγχωνευθεί ως 4ec69a7d08.
Συνδεθείτε για να συμμετάσχετε σε αυτή τη συνομιλία.
Δεν υπάρχουν εξεταστές
Χωρίς Ορόσημο
Χωρίς Αποδέκτη
3 Συμμετέχοντες
Ειδοποιήσεις
Ημερομηνία Παράδοσης

Δεν ορίστηκε ημερομηνία παράδοσης.

Αναφορά: TDE/tdegraphics#54
Φόρτωση…
Δεν υπάρχει ακόμα περιεχόμενο.