Skip to content

Make brush preset history limit configurable

Now the brush preset history docker can show more (or less) than 10 of the last used brushes.

As requested here: https://krita-artists.org/t/brush-preset-history-extending-amount-of-brushes-saved/49558

Test Plan

Using the input dialog added to the Brush Preset History docker's context menu, configure the number of brushes remembered:

  • When the limit is raised, adding new brushes should fill the list until hitting the limit, then start removing the oldest ones.
  • When the limit is lowered, the list should be truncated to fit the new limit.

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