Actions for toggling layer visibility, lock, alpha inherit and alpha lock
ClosedPublic

Authored by valeriymalov on Jun 6 2017, 11:57 PM.

Details

Reviewers
rempt
Group Reviewers
Krita: Next Features
Summary

Implement actions for toggling layer visibility, etc. per https://bugs.kde.org/show_bug.cgi?id=376946

Diff Detail

Repository
R37 Krita
Lint
Lint Skipped
Unit
Unit Tests Skipped
valeriymalov created this revision.Jun 6 2017, 11:57 PM
rempt accepted this revision.Jun 8 2017, 7:18 AM
rempt added a subscriber: rempt.

This works fine, and the patch is very nice and complete. The one thing I'm not too fond of is the use of 'auto' -- there's not much advantage in using

auto layer = qobject_cast<KisLayer*>(active.data());

instead of

KisLayer *layer = qobject_cast<KisLayer*>(active.data());, or even in loops. It's not a big problem, though, and I'll push your patch after pushing https://phabricator.kde.org/D6139?id=15258#114876 -- weirdly enough, two people worked on the same thing at the same time. The author of the other patch spent a long time working on getting into Krita, so I'd like to have his name in our git history as well...

This revision is now accepted and ready to land.Jun 8 2017, 7:18 AM
rempt added a comment.Jun 8 2017, 7:21 AM

Btw... I see this isn't your first patch for a KDE project: maybe you should get committer access?

valeriymalov closed this revision.Jun 13 2017, 11:31 PM

Oh, that was unintentional coincidence, sorry, I didn't check the phabricator before submitting

It's probably too early for me to ask for a commit access because I have only a couple of patches accepted

Also, I assume it's okay to close this revision since the patch was accepted?

rempt added a comment.Jun 14 2017, 7:59 AM

For me, 3 patches are enough :-). And yes, the revision should've been closed.