Fix QWidget::getContentsMargins() deprecation warning by switching to contentsMargins().top()/.bottom()