mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Fixed CDockContainerWidget::hasTopLevelDockWidget() and CDockContainerWidget::topLevelDockArea() to work properly also for the main non floating dock container
This commit is contained in:
parent
dbf90a4233
commit
12bb7b73e9
@ -1614,11 +1614,6 @@ CDockAreaWidget* CDockContainerWidget::lastAddedDockAreaWidget(DockWidgetArea ar
|
||||
//============================================================================
|
||||
bool CDockContainerWidget::hasTopLevelDockWidget() const
|
||||
{
|
||||
if (!isFloating())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
auto DockAreas = openedDockAreas();
|
||||
if (DockAreas.count() != 1)
|
||||
{
|
||||
@ -1652,11 +1647,6 @@ CDockWidget* CDockContainerWidget::topLevelDockWidget() const
|
||||
//============================================================================
|
||||
CDockAreaWidget* CDockContainerWidget::topLevelDockArea() const
|
||||
{
|
||||
if (!isFloating())
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto DockAreas = openedDockAreas();
|
||||
if (DockAreas.count() != 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user