mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-26 22:39:02 +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();
|
d->DockWidget->show();
|
||||||
updateSize();
|
updateSize();
|
||||||
updateMask();
|
updateMask();
|
||||||
|
d->DockManager->setDockWidgetFocused(d->DockWidget);
|
||||||
qApp->installEventFilter(this);
|
qApp->installEventFilter(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1085,15 +1085,7 @@ void CDockWidget::onDockWidgetSideTabClicked()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
autoHideContainer->raise();
|
|
||||||
autoHideContainer->toggleCollapseState();
|
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