Fixed issue #164 - Single DockArea cannot be split

This commit is contained in:
Uwe Kindler
2020-05-11 09:03:28 +02:00
parent b7e7c0ccc3
commit aa7976dac6
2 changed files with 18 additions and 22 deletions

View File

@@ -589,7 +589,7 @@ void CDockAreaTitleBar::mouseMoveEvent(QMouseEvent* ev)
return;
}
// If this is the last dock area in a dock container it does not make
// If this is the last dock area in a floating dock container it does not make
// sense to move it to a new floating widget and leave this one
// empty
if (d->DockArea->dockContainer()->isFloating()
@@ -612,7 +612,7 @@ void CDockAreaTitleBar::mouseMoveEvent(QMouseEvent* ev)
int DragDistance = (d->DragStartMousePos - ev->pos()).manhattanLength();
if (DragDistance >= CDockManager::startDragDistance())
{
ADS_PRINT("CTabsScrollArea::startFloating");
ADS_PRINT("CDockAreaTitlBar::startFloating");
d->startFloating(d->DragStartMousePos);
auto Overlay = d->DockArea->dockManager()->containerOverlay();
Overlay->setAllowedAreas(OuterDockAreas);