Fix compilation of lance tool

The QLayout::setMargin(x) call has been deprecated since Qt 5.13.
It was an alias for setContentsMargins(x, x, x, x) so we just
replace it with that.

Change-Id: I1c89eebfe776e0e3c8d0bdc19244bd452db4ef3c
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2020-06-05 07:33:26 +02:00
parent 5ba44d1427
commit a389001710

View File

@ -40,7 +40,7 @@ InteractiveWidget::InteractiveWidget()
QWidget *panelContent = new QWidget();
QVBoxLayout *vlayout = new QVBoxLayout(panelContent);
vlayout->setMargin(0);
vlayout->setContentsMargins(0, 0, 0, 0);
vlayout->setSpacing(0);
// create and populate the command toolbox