Skip to content

Add "Lock Width/Height/Ratio" actions to on-canvas crop tool context menu

crop

What: This adds three additional toggles - Lock Width/Height/Ratio - (and a separator to group them) to the so far sparsely populated on-canvas right-click context menu of the Crop tool.

Why: This speeds up various cropping workflows by making the lock toggles available directly on-canvas at the current cursor location.

Test Plan

Toggle the Lock Width/Height/Ratio state from both the Tool Options Docker and the On-Canvas Context Menu, checking if the state is correctly synced between the two and applied to the tool.

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.

Merge request reports