File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,8 @@ void CDockFocusController::onFocusWindowChanged(QWindow *focusWindow)
251
251
// ===========================================================================
252
252
void CDockFocusController::onApplicationFocusChanged (QWidget* focusedOld, QWidget* focusedNow)
253
253
{
254
+ Q_UNUSED (focusedOld);
255
+
254
256
if (d->DockManager ->isRestoringState ())
255
257
{
256
258
return ;
@@ -372,13 +374,6 @@ void CDockFocusController::notifyFloatingWidgetDrop(CFloatingDockContainer* Floa
372
374
auto DockWidget = vDockWidget.value <CDockWidget*>();
373
375
if (DockWidget)
374
376
{
375
- /* auto Window = DockWidget->dockContainer()->window()->windowHandle();
376
- DockWidget->dockContainer()->window()->clearFocus();
377
- if (Window)
378
- {
379
- Window->setProperty("FocusedDockWidget", QVariant::fromValue<CDockWidget*>(DockWidget));
380
- }*/
381
- d->FocusedDockWidget = nullptr ;
382
377
DockWidget->dockAreaWidget ()->setCurrentDockWidget (DockWidget);
383
378
CDockManager::setWidgetFocus (DockWidget);
384
379
}
You can’t perform that action at this time.
0 commit comments