Commit cada4a72 authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham
Browse files

kstyle: make sure parent style doesn't draw own focus indicator for tabs

We already have our own; having the parent style draw it too is redundant
and doesn't look good.
parent f53fb929
......@@ -5574,7 +5574,13 @@ namespace Breeze
// call parent style method
// we draw the focus ourselves so we don't need the parent to do it for us.
auto old = option->state;
// clear the State_HasFocus bit
const_cast<QStyleOption*>(option)->state &= ~State_HasFocus;
ParentStyleClass::drawControl( CE_TabBarTabLabel, option, painter, widget );
const_cast<QStyleOption*>(option)->state = old;
// store rect and palette
const auto& rect( option->rect );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment