A couple weeks ago Dmitry fixed a bug to do with the canvas "popping/jumping" when panning just after using the pop-up palette to rotate.

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

Someone (Piotr) mentioned that the bug was still present when the canvas rotation was reset, so I quickly piggy-backed off Dmitry's prior fix and fixed the rotation the same way (by using the canvas controller's rotation function there too).

While in that code I spent a few minutes cleaning up some unused #includes (there are probably some others in the header that could be swapped for forward declarations), whitespace inconsistencies, and other boring code style stuff. (Also, please let me know if doing this type of cleanup is more annoying than helpful!)

Test Plan: Try panning the canvas immediately after rotating and/or resetting the canvas rotation using the cool little slider in the pop-up palette. It should be relatively smooth!

CC:emmetoneill.pdx@gmail.com

Reviewers: #krita, dkazakov, rempt

Reviewed By: #krita, dkazakov

Subscribers: woltherav, #krita

Tags: #krita

Differential Revision: https://phabricator.kde.org/D12128

(cherry picked from commit bd4b40d7133aecc8f5abd783bbcb047687355754)

commit 3cdbd97f494bca91e80dea65fd3ef4f99dc4f38d

Author: Seoras Macdonald <seoras1@gmail.com>

Date: Wed Apr 18 11:46:35 2018 +0300

Change the behaviour of the add layer button

Summary:

In the layers docker, if more than 1 layer is selected, then

the add layer button now creates a quick group for the selected

layers.

BUG: 385050

Reviewers: #krita, rempt

Reviewed By: #krita, rempt

Subscribers: alvinhochun, woltherav

Tags: #krita

Differential Revision: https://phabricator.kde.org/D11507

(cherry picked from commit 77d75e3d811add37b909683d61ad8e779f8524e1)

commit a45a0638dba4478389783ef3242a9be5c8ebc282

Author: Dmitry Kazakov <dimula73@gmail.com>

Date: Wed Apr 18 11:44:37 2018 +0300

Clicking outside preview box moves view to that point

Summary:

Clicking outside of the preview box in the overview docker now moves the view of the canvas to be centered at that point.

BUG: 384687

Patch by Seoras Macdonald

Reviewers: #krita, dkazakov

Reviewed By: #krita, dkazakov

Subscribers: dkazakov, emmetoneill

Differential Revision: https://phabricator.kde.org/D12178

(cherry picked from commit 0eb11f4eaf8439a675fa41a08d62fc5c75fbba8c)

commit 7caa9c8db59df71e805320689df6835473507eec

Author: Scott Petrovic <scottpetrovic@gmail.com>

Date: Mon Apr 16 17:27:55 2018 -0500

Make strength and opacity sliders from 0 to 100 percent in brush editor