Diffusion Krita 396f36bfaec7

Fix the fix of Brush HUD

Authored by mwein on May 1 2020, 10:04 AM.

Description

Fix the fix of Brush HUD

When the property list was empty, the widget got way too small.
So better not bypass the top level layout completely, but set a
minimum size for the scroll area, and wait some more until the
top level layout recalculated a recommended size.

Things would be easier if QLayout::sizeConstraint had separate
horizontal and vertical parameters, using SetFixedSize would
resize before repaint but then we lose control of the height...

(cherry picked from commit bc7f167b93f40bd3cbfd3ef176a87c55dc4672cb)

Details

Committed
remptMay 2 2020, 8:07 AM
Parents
R37:ed1bf6eefcc9: Fix Brush HUD width adjustment
Branches
Unknown
Tags
Unknown