mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
cleanup - remove unused code, fix comments, add const
This commit is contained in:
parent
ee2ef8ac69
commit
a012426f9b
@ -1534,7 +1534,7 @@ CAutoHideDockContainer* CDockContainerWidget::createAndSetupAutoHideContainer(
|
|||||||
{
|
{
|
||||||
if (d->DockManager != DockWidget->dockManager())
|
if (d->DockManager != DockWidget->dockManager())
|
||||||
{
|
{
|
||||||
DockWidget->setDockManager(d->DockManager); // Overlay Dock Container needs a valid dock manager
|
DockWidget->setDockManager(d->DockManager); // Auto hide Dock Container needs a valid dock manager
|
||||||
}
|
}
|
||||||
if (!CDockManager::testConfigFlag(CDockManager::AutoHideFeatureEnabled))
|
if (!CDockManager::testConfigFlag(CDockManager::AutoHideFeatureEnabled))
|
||||||
{
|
{
|
||||||
@ -1547,11 +1547,10 @@ CAutoHideDockContainer* CDockContainerWidget::createAndSetupAutoHideContainer(
|
|||||||
sideTabBar(area)->insertSideTab(insertOrder == CDockWidget::First ? 0 : -1, DockWidget->sideTabWidget());
|
sideTabBar(area)->insertSideTab(insertOrder == CDockWidget::First ? 0 : -1, DockWidget->sideTabWidget());
|
||||||
DockWidget->sideTabWidget()->show();
|
DockWidget->sideTabWidget()->show();
|
||||||
|
|
||||||
auto AutoHideContainer = new CAutoHideDockContainer(DockWidget, area, this);
|
const auto AutoHideContainer = new CAutoHideDockContainer(DockWidget, area, this);
|
||||||
AutoHideContainer->hide();
|
AutoHideContainer->hide();
|
||||||
d->DockManager->dockFocusController()->clearDockWidgetFocus(DockWidget);
|
d->DockManager->dockFocusController()->clearDockWidgetFocus(DockWidget);
|
||||||
|
|
||||||
//auto AutoHideContainer = sideTabBar(area)->insertDockWidget(insertOrder == CDockWidget::First ? 0 : -1, DockWidget);
|
|
||||||
return AutoHideContainer;
|
return AutoHideContainer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user