Added proper support for closable feature, now the close button is disabled for floating widgets

This commit is contained in:
Uwe Kindler
2018-10-12 15:18:05 +02:00
parent 11e5f9c95a
commit 8637c89a6b
5 changed files with 69 additions and 2 deletions

View File

@@ -1153,6 +1153,19 @@ QList<CDockWidget*> CDockContainerWidget::dockWidgets() const
}
//============================================================================
CDockWidget::DockWidgetFeatures CDockContainerWidget::features() const
{
CDockWidget::DockWidgetFeatures Features;
for (const auto DockArea : d->DockAreas)
{
Features &= DockArea->features();
}
return Features;
}
} // namespace ads