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

@@ -654,6 +654,19 @@ CDockWidget* CDockAreaWidget::nextOpenDockWidget(CDockWidget* DockWidget) const
}
}
//============================================================================
CDockWidget::DockWidgetFeatures CDockAreaWidget::features() const
{
CDockWidget::DockWidgetFeatures Features;
for (const auto DockWidget : dockWidgets())
{
Features &= DockWidget->features();
}
return Features;
}
} // namespace ads
//---------------------------------------------------------------------------