mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
Changed toggleAutoHideArea)= logic - only the current dock widget is pinned and not all dock widgets of this area
This commit is contained in:
parent
e3117121cc
commit
bb630ca605
@ -1100,15 +1100,12 @@ void CDockAreaWidget::closeArea()
|
||||
void CDockAreaWidget::toggleAutoHideArea(bool Enable)
|
||||
{
|
||||
const auto area = dockContainer()->getDockAreaPosition(this);
|
||||
for (const auto DockWidget : openedDockWidgets())
|
||||
const auto DockWidget = currentDockWidget();
|
||||
if (Enable == isAutoHide())
|
||||
{
|
||||
if (Enable == isAutoHide())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
onAutoHideToggleRequested(DockWidget, !isAutoHide(), area);
|
||||
return;
|
||||
}
|
||||
onAutoHideToggleRequested(DockWidget, !isAutoHide(), area);
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user