Ensure that auto hide widget will be closed if user starts dragging floating widget or docked widget

This commit is contained in:
Uwe Kindler
2022-11-22 11:11:49 +01:00
parent dba6e6c869
commit a2a328e3c7
4 changed files with 15 additions and 21 deletions

View File

@@ -337,7 +337,7 @@ bool DockWidgetTabPrivate::startFloating(eDragState DraggingState)
auto Overlay = DockManager->containerOverlay();
Overlay->setAllowedAreas(OuterDockAreas);
this->FloatingWidget = FloatingWidget;
qApp->postEvent(DockManager, new QEvent((QEvent::Type)internal::DockedWidgetDragStartEvent));
qApp->postEvent(DockWidget, new QEvent((QEvent::Type)internal::DockedWidgetDragStartEvent));
}
else
{