Assistants improvements part 3 (07.07.2022)
- Change delete assistant icon from cancel to trashcan
- Add lock icon.
- Let Shift in assist. snap to 15 instead of 90degrees
- Save assistant editor widget position offset to file
Changing delete assistant icon to trashcan:
Test Plan
- Create a new document.
- Create a new assistant, while creating use Shift + dragging to see the angles that it snaps to.
- After creation, edit the handles with Shift to see it still works.
- Move the editor widget position to some other place.
- Lock the assistant.
- Check if you can edit the assistant in any way.
- Save and reopen to see if lock state and the editor widget position are saved to .kra file (they should be).
Formalities Checklist
-
I confirmed this builds. -
I confirmed Krita ran and the relevant functions work. -
I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!) -
I made sure my commits build individually and have good descriptions as per KDE guidelines. -
I made sure my code conforms to the standards set in the HACKING file. -
I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.
Edited by Agata Cacko