setAllowedAreas for individual DockAreaWidget (#107)

* setAllowedAreas for individual DockAreaWidget

* alligning tab policy with master
This commit is contained in:
mvidelgauz
2020-02-02 16:56:31 +02:00
committed by GitHub
parent 9fe8f291fb
commit 6c3f82547d
6 changed files with 33 additions and 6 deletions

View File

@@ -245,6 +245,7 @@ struct DockAreaWidgetPrivate
CDockAreaTitleBar* TitleBar = nullptr;
CDockManager* DockManager = nullptr;
bool UpdateTitleBarButtons = false;
DockWidgetAreas AllowedAreas = AllDockAreas;
/**
* Private data constructor
@@ -812,6 +813,15 @@ void CDockAreaWidget::setVisible(bool Visible)
}
}
void CDockAreaWidget::setAllowedAreas(DockWidgetAreas areas)
{
d->AllowedAreas = areas;
}
DockWidgetAreas CDockAreaWidget::allowedAreas() const
{
return d->AllowedAreas;
}
//============================================================================
QAbstractButton* CDockAreaWidget::titleBarButton(TitleBarButton which) const