Added a QSpinBox to adjust granularity while doing transforms
ClosedPublic

Authored by hellozee on Dec 18 2018, 6:39 PM.

Details

Summary

The patch adds a QSpinBox to the transform tool options to adjust the granularity while doing transforms.

Fixes https://bugs.kde.org/show_bug.cgi?id=344210

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
hellozee requested review of this revision.Dec 18 2018, 6:39 PM
hellozee created this revision.
dkazakov requested changes to this revision.Dec 25 2018, 6:31 AM

Hi, @hellozee!

The patch looks basically correct, except that the option is related to cage transform only, so it is logical to put it into the "cage" page, but not to the free transform page. Right now it looks very confusing :)

Please move it to the Cage page :)

This revision now requires changes to proceed.Dec 25 2018, 6:31 AM
hellozee updated this revision to Diff 48183.Dec 25 2018, 9:12 AM

Moved the QSpinBox to Cage Transform Page of the Transform Tool

dkazakov accepted this revision.Dec 25 2018, 1:47 PM

Hi, @hellozee!

The patch looks fine! Now you should add one more option for the preview granularity, but that is for the next patch :)

PS:
Right now the configuration is hardcoded in KisCageTransformStrategy::calculateTransformedImage()

This revision is now accepted and ready to land.Dec 25 2018, 1:47 PM

Thanks for the idea of another patch, I was having a hard time going through bugzilla to get one, ๐Ÿ˜›

This revision was automatically updated to reflect the committed changes.