This is a snapshot docker that allows users to create snapshots (shallow copies) of the current document, and switch back to any snapshot at a later time. Users can also edit the names of the snapshots or delete them in the docker.
- Create a document.
- Paint something.
- Add some guides.
- Add some assistants.
- Add some reference images.
- Add a document-wide palette by creating a palette in the palette docker and then click "edit this palette" then click "OK."
- Crop the image to a smaller size.
- Create a snapshot in the snapshot docker.
- Double click that snapshot to rename it.
- Restore the document to the initial state in the History Docker by clicking
Everything in the document should return to the state before creating the snapshot.
Assistants decoration needs to be updated correctly. We probably should use counts for snapshot names.
[Disputable] Should undo stack be cleared, or should we add an undo command for switching snapshots?NO
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!) It breaks one more image test than master:
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.