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

@@ -465,6 +465,11 @@ void CDockAreaTitleBar::mousePressEvent(QMouseEvent* ev)
ev->accept();
d->DragStartMousePos = ev->pos();
d->DragState = DraggingMousePressed;
if (CDockManager::configFlags().testFlag(CDockManager::FocusHighlighting))
{
d->TabBar->currentTab()->setFocus(Qt::OtherFocusReason);
}
return;
}
Super::mousePressEvent(ev);
@@ -485,6 +490,7 @@ void CDockAreaTitleBar::mouseReleaseEvent(QMouseEvent* ev)
{
d->FloatingWidget->finishDragging();
}
return;
}
Super::mouseReleaseEvent(ev);