Fix docking behavior when there is a central widget
This commit is contained in:
@@ -1129,6 +1129,22 @@ bool CDockAreaWidget::isCentralWidgetArea() const
|
||||
}
|
||||
|
||||
|
||||
//============================================================================
|
||||
bool CDockAreaWidget::containsCentralWidget() const
|
||||
{
|
||||
auto centralWidget = dockManager()->centralWidget();
|
||||
for (const auto &dockWidget : dockWidgets())
|
||||
{
|
||||
if (dockWidget == centralWidget)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//============================================================================
|
||||
QSize CDockAreaWidget::minimumSizeHint() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user