mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-27 23:00:20 +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,16 +1100,13 @@ void CDockAreaWidget::closeArea()
|
|||||||
void CDockAreaWidget::toggleAutoHideArea(bool Enable)
|
void CDockAreaWidget::toggleAutoHideArea(bool Enable)
|
||||||
{
|
{
|
||||||
const auto area = dockContainer()->getDockAreaPosition(this);
|
const auto area = dockContainer()->getDockAreaPosition(this);
|
||||||
for (const auto DockWidget : openedDockWidgets())
|
const auto DockWidget = currentDockWidget();
|
||||||
{
|
|
||||||
if (Enable == isAutoHide())
|
if (Enable == isAutoHide())
|
||||||
{
|
{
|
||||||
continue;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
onAutoHideToggleRequested(DockWidget, !isAutoHide(), area);
|
onAutoHideToggleRequested(DockWidget, !isAutoHide(), area);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
void CDockAreaWidget::onAutoHideToggleRequested(CDockWidget* DockWidget, bool Enable, CDockWidgetSideTab::SideTabBarArea area)
|
void CDockAreaWidget::onAutoHideToggleRequested(CDockWidget* DockWidget, bool Enable, CDockWidgetSideTab::SideTabBarArea area)
|
||||||
|
Loading…
Reference in New Issue
Block a user