mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Backport getContentsMargins() deprecation fix
This commit is contained in:
parent
1a3f150632
commit
9671f8ca20
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user