Fixed wrong display of center drop area when dragging over invisible dock area title bar

This commit is contained in:
Uwe Kindler 2020-04-27 15:27:34 +02:00
parent 80aee638c9
commit 47029190dc

View File

@ -37,6 +37,7 @@
#include <QWindow>
#include "DockAreaWidget.h"
#include "DockAreaTitleBar.h"
#include <iostream>
@ -387,6 +388,7 @@ DockWidgetArea CDockOverlay::dropAreaUnderCursor() const
}
if (DockArea->allowedAreas().testFlag(CenterDockWidgetArea)
&& !DockArea->titleBar()->isHidden()
&& DockArea->titleBarGeometry().contains(DockArea->mapFromGlobal(QCursor::pos())))
{
return CenterDockWidgetArea;