Fix bad porting of deprecated QLayout::margin
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.