Update the overlay's geometry when we resize the main window

This commit is contained in:
Sergio Martins
2020-09-20 16:37:45 +01:00
parent 8d7627069c
commit af5e11a265
4 changed files with 17 additions and 1 deletions

View File

@@ -231,7 +231,7 @@ void MainWindowBase::Private::updateOverlayGeometry()
return;
}
m_overlayedDockWidget->setGeometry(rectForOverlay(m_overlayedDockWidget->frame(), sb->location()));
m_overlayedDockWidget->frame()->QWidgetAdapter::setGeometry(rectForOverlay(m_overlayedDockWidget->frame(), sb->location()));
}
void MainWindowBase::moveToSideBar(DockWidgetBase *dw)
@@ -350,6 +350,12 @@ void MainWindowBase::setUniqueName(const QString &uniqueName)
}
}
void MainWindowBase::onResized(QResizeEvent *)
{
if (d->m_overlayedDockWidget)
d->updateOverlayGeometry();
}
bool MainWindowBase::deserialize(const LayoutSaver::MainWindow &mw)
{
if (mw.options != options()) {