Enabled ClickFocus for CDockWidget to support focussing in case the content does not support it

Renamed FocusStyling to FocusHighlighting
This commit is contained in:
Uwe Kindler
2020-06-06 14:59:03 +02:00
parent 2fc8bbe9c9
commit 312a8cf500
9 changed files with 60 additions and 9 deletions

View File

@@ -202,7 +202,13 @@ void CDockFocusController::onApplicationFocusChanged(QWidget* focusedOld, QWidge
{
DockWidget = DockWidgetTab->dockWidget();
}
else
if (!DockWidget)
{
DockWidget = qobject_cast<CDockWidget*>(focusedNow);
}
if (!DockWidget)
{
DockWidget = internal::findParent<CDockWidget*>(focusedNow);
}
@@ -226,6 +232,13 @@ void CDockFocusController::onApplicationFocusChanged(QWidget* focusedOld, QWidge
}
//===========================================================================
void CDockFocusController::setDockWidgetFocused(CDockWidget* focusedNow)
{
d->updateDockWidgetFocus(focusedNow);
}
//===========================================================================
void CDockFocusController::onFocusedDockAreaViewToggled(bool Open)
{