mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fix bug where dragging an overlayed widget would cause it to be empty
Fix bug where pin and unpin doesn't work
This commit is contained in:
parent
1d9902b690
commit
302fcd1435
@ -1045,11 +1045,12 @@ void CDockAreaWidget::onAutoHideToggleRequested(CDockWidget* DockWidget, bool En
|
|||||||
if (Enable)
|
if (Enable)
|
||||||
{
|
{
|
||||||
dockContainer()->createAndInitializeDockWidgetOverlayContainer(area, DockWidget);
|
dockContainer()->createAndInitializeDockWidgetOverlayContainer(area, DockWidget);
|
||||||
toggleView(false);
|
DockWidget->toggleView(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
overlayDockContainer()->moveContentsToParent();
|
overlayDockContainer()->moveContentsToParent();
|
||||||
|
DockWidget->toggleView(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ void DockFocusControllerPrivate::updateDockWidgetFocus(CDockWidget* DockWidget)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (old && old->overlayDockContainer() && old != DockWidget)
|
if (old && old->overlayDockContainer() && old->overlayDockContainer()->isVisible() && old != FocusedDockWidget)
|
||||||
{
|
{
|
||||||
old->toggleView(false);
|
old->toggleView(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user