mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 16:20:25 +08:00
Fixed wrong display of center drop area when dragging over invisible dock area title bar
This commit is contained in:
parent
80aee638c9
commit
47029190dc
@ -37,6 +37,7 @@
|
|||||||
#include <QWindow>
|
#include <QWindow>
|
||||||
|
|
||||||
#include "DockAreaWidget.h"
|
#include "DockAreaWidget.h"
|
||||||
|
#include "DockAreaTitleBar.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@ -387,6 +388,7 @@ DockWidgetArea CDockOverlay::dropAreaUnderCursor() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (DockArea->allowedAreas().testFlag(CenterDockWidgetArea)
|
if (DockArea->allowedAreas().testFlag(CenterDockWidgetArea)
|
||||||
|
&& !DockArea->titleBar()->isHidden()
|
||||||
&& DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos())))
|
&& DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos())))
|
||||||
{
|
{
|
||||||
return CenterDockWidgetArea;
|
return CenterDockWidgetArea;
|
||||||
|
Loading…
Reference in New Issue
Block a user