Improved highlighting focused dock widget
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user