mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
Blocked tabyfing via moving over DockArea titlebar if the CenterDockWidgetArea is not in the allowed areas for DockAreaWidget
This commit is contained in:
parent
68b0958119
commit
1dbd3f3f06
@ -386,7 +386,8 @@ DockWidgetArea CDockOverlay::dropAreaUnderCursor() const
|
|||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos())))
|
if (DockArea->allowedAreas().testFlag(CenterDockWidgetArea)
|
||||||
|
&& DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos())))
|
||||||
{
|
{
|
||||||
return CenterDockWidgetArea;
|
return CenterDockWidgetArea;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user