mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed #511 - CDockWidget::toggleView now properly shows auto hide widgets
This commit is contained in:
parent
1186d2b78c
commit
7a79ecab8a
@ -643,14 +643,20 @@ void CDockWidget::toggleView(bool Open)
|
||||
// If the dock widget state is different, then we really need to toggle
|
||||
// the state. If we are in the right state, then we simply make this
|
||||
// dock widget the current dock widget
|
||||
auto AutoHideContainer = autoHideDockContainer();
|
||||
if (d->Closed != !Open)
|
||||
{
|
||||
toggleViewInternal(Open);
|
||||
}
|
||||
else if (Open && d->DockArea)
|
||||
else if (Open && d->DockArea && !AutoHideContainer)
|
||||
{
|
||||
raise();
|
||||
}
|
||||
|
||||
if (Open && AutoHideContainer)
|
||||
{
|
||||
AutoHideContainer->collapseView(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user