Backport getContentsMargins() deprecation fix

This commit is contained in:
Juergen Spitzmueller 2021-03-13 12:21:50 +01:00
parent 1a3f150632
commit 9671f8ca20

View File

@ -4390,8 +4390,7 @@ bool GuiView::lfunUiToggle(string const & ui_component)
menuBar()->setVisible(!menuBar()->isVisible());
} else
if (ui_component == "frame") {
int l, t, r, b;
getContentsMargins(&l, &t, &r, &b);
int const l = contentsMargins().left();
//are the frames in default state?
d.current_work_area_->setFrameStyle(QFrame::NoFrame);
if (l == 0) {