Skip to content

Fix bad porting of deprecated QLayout::margin

Stefan Brüns requested to merge work/bruns/fix_layout_margin_usage into master

Fortunately, the current margin is constant 0 for all four edges, but if the margins were different a negative margin would be used for the sizeHint().

Instead, use the four margins appropriately for calculating width/height.

Merge request reports