mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-27 00:11:33 +08:00
Add assert
This commit is contained in:
parent
68e5aec912
commit
68a3bcde08
@ -1471,6 +1471,8 @@ CDockContainerWidget::~CDockContainerWidget()
|
|||||||
CDockAreaWidget* CDockContainerWidget::addDockWidget(DockWidgetArea area, CDockWidget* Dockwidget,
|
CDockAreaWidget* CDockContainerWidget::addDockWidget(DockWidgetArea area, CDockWidget* Dockwidget,
|
||||||
CDockAreaWidget* DockAreaWidget)
|
CDockAreaWidget* DockAreaWidget)
|
||||||
{
|
{
|
||||||
|
Q_ASSERT_X(!DockAreaWidget->isOverlayed(), "CDockContainerWidget::addDockWidget", "Adding a dock widget to an area that is already overlayed is not supported.");
|
||||||
|
|
||||||
CDockAreaWidget* OldDockArea = Dockwidget->dockAreaWidget();
|
CDockAreaWidget* OldDockArea = Dockwidget->dockAreaWidget();
|
||||||
if (OldDockArea)
|
if (OldDockArea)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user