mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-13 00:30:25 +08:00
cleaner dock widget side tab click handling
This commit is contained in:
parent
efb87c868b
commit
91190e8744
@ -437,6 +437,7 @@ void CAutoHideDockContainer::collapseView(bool Enable)
|
||||
d->DockWidget->show();
|
||||
updateSize();
|
||||
updateMask();
|
||||
d->DockManager->setDockWidgetFocused(d->DockWidget);
|
||||
qApp->installEventFilter(this);
|
||||
}
|
||||
}
|
||||
|
@ -1085,15 +1085,7 @@ void CDockWidget::onDockWidgetSideTabClicked()
|
||||
return;
|
||||
}
|
||||
|
||||
autoHideContainer->raise();
|
||||
autoHideContainer->toggleCollapseState();
|
||||
if (autoHideContainer->isVisible())
|
||||
{
|
||||
// d->DockManager->setDockWidgetFocused(this) does not
|
||||
// de focus the old widget, leading to the auto hide still being visible
|
||||
// even after clicking outside the auto hide.
|
||||
setFocus(Qt::ActiveWindowFocusReason);
|
||||
}
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user