mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-27 23:00:20 +08:00
Fixed display of container dock overlay if only one single visible dock area is in a container
This commit is contained in:
parent
fe10b570d3
commit
4cb1931ace
@ -145,6 +145,14 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
DockAreaOverlay->hideOverlay();
|
DockAreaOverlay->hideOverlay();
|
||||||
|
// If there is only one single visible dock area in a container, then
|
||||||
|
// it does not make sense to show a dock overlay because the dock area
|
||||||
|
// would be removed and inserted at the same position
|
||||||
|
if (1 <= VisibleDockAreas)
|
||||||
|
{
|
||||||
|
ContainerOverlay->hide();
|
||||||
|
}
|
||||||
|
|
||||||
if (DockArea == ContentSourceArea && InvalidDockWidgetArea == ContainerDropArea)
|
if (DockArea == ContentSourceArea && InvalidDockWidgetArea == ContainerDropArea)
|
||||||
{
|
{
|
||||||
DropContainer = nullptr;
|
DropContainer = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user