From 4da810ba7c0b6ce055a8320575fc9218ace7abde Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Wed, 20 May 2020 14:20:27 +0200 Subject: [PATCH] Added window()->activateWindow() dropFloatingWidget() function --- src/DockContainerWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index 14a3cb4..d10ce15 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1459,6 +1459,8 @@ void CDockContainerWidget::dropFloatingWidget(CFloatingDockContainer* FloatingWi // level widget anymore CDockWidget::emitTopLevelEventForWidget(SingleDockWidget, false); } + + window()->activateWindow(); } @@ -1490,7 +1492,7 @@ void CDockContainerWidget::dropWidget(QWidget* Widget, DockWidgetArea DropArea, } } - this->window()->activateWindow(); + window()->activateWindow(); d->DockManager->emitWidgetDroppedSignals(Widget); }