mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-03-16 02:59:51 +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
|
bool CDockContainerWidget::hasTopLevelDockWidget() const
|
||||||
{
|
{
|
||||||
if (!isFloating())
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto DockAreas = openedDockAreas();
|
auto DockAreas = openedDockAreas();
|
||||||
if (DockAreas.count() != 1)
|
if (DockAreas.count() != 1)
|
||||||
{
|
{
|
||||||
@ -1652,11 +1647,6 @@ CDockWidget* CDockContainerWidget::topLevelDockWidget() const
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
CDockAreaWidget* CDockContainerWidget::topLevelDockArea() const
|
CDockAreaWidget* CDockContainerWidget::topLevelDockArea() const
|
||||||
{
|
{
|
||||||
if (!isFloating())
|
|
||||||
{
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto DockAreas = openedDockAreas();
|
auto DockAreas = openedDockAreas();
|
||||||
if (DockAreas.count() != 1)
|
if (DockAreas.count() != 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user