Port away from deprecated QLayout::setMargin()

Authored by kossebau on Feb 27 2019, 8:17 PM.