Skip to content

Fixed the horizontal stretch factor for the brush preset chooser

The horizontal stretch factor is now set on widget creation so that it applies immediately when the widgets are added to horzSplitter when the layout changes to horizontal layout.

Test Plan

Go to Settings -> Docker -> Brush Presets detach the docker into a window and dock it above the canvas shrink the docker to less than 100px in height.

The Brush Preset View (KisResourceItemListView) should now always stretch and the right side should have minimum size. HorizontalLayout2RowsFixed HorizontalLayout1RowFixed

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 Măcelaru Tiberiu

Merge request reports