Improved highlighting focused dock widget

This commit is contained in:
Uwe Kindler
2020-05-13 11:17:43 +02:00
parent f54869fbf7
commit 056e1ef947
3 changed files with 39 additions and 24 deletions

View File

@@ -468,6 +468,11 @@ void CDockWidgetTab::setActiveTab(bool active)
return;
}
if (active && !hasFocus())
{
std::cout << "setFocus(Qt::OtherFocusReason);" << std::endl;
setFocus(Qt::OtherFocusReason);
}
d->IsActiveTab = active;
updateStyle();
update();