Update overlay geometries when central widget changes size

We were only updating the overlays when the main window changed
size, but it can happen that only the central widget changes size,
for example when you remove or add a toolbar

Fixes #227
This commit is contained in:
Sergio Martins
2021-08-22 22:22:14 +01:00
parent a1578c92ab
commit def85228d0
2 changed files with 5 additions and 1 deletions

View File

@@ -87,6 +87,10 @@ MainWindowBase::MainWindowBase(const QString &uniqueName, KDDockWidgets::MainWin
connect(d->m_layoutWidget, &LayoutWidget::visibleWidgetCountChanged, this,
&MainWindowBase::frameCountChanged);
connect(this, &MainWindowBase::centralWidgetResized, this, [this] {
d->updateOverlayedDockWidgetGeometries();
});
}
MainWindowBase::~MainWindowBase()