Reworked toggle view

Previous:
- It would just hide the overlay dock widget and leave the side tabs
still visible
- Close button, toggle view action would simply collapse the dock widget
intsead of completely hiding it

Current:
- Now toggle view and collapse functionality are separated.
- Toggle view will now hide the side tab bars completely
- Close button and toggle view action will completely hide it
- Collapse view will simply hide the overlay dock container without
hiding the side tabs
- Handled logic for floating widgets and toggling view
This commit is contained in:
Syarif Fakhri
2022-09-09 12:18:41 +08:00
parent 6ae14fada3
commit 84c6afa428
8 changed files with 105 additions and 27 deletions

View File

@@ -1079,12 +1079,10 @@ void CDockAreaWidget::onAutoHideToggleRequested(CDockWidget* DockWidget, bool En
if (Enable)
{
dockContainer()->createAndInitializeDockWidgetOverlayContainer(area, DockWidget);
DockWidget->toggleView(false);
}
else
{
overlayDockContainer()->moveContentsToParent();
DockWidget->toggleView(true);
}
}