Commit 866a99b6 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

ManhattanStyle: Simplify focus frame drawing

Change-Id: I61ca02b7cbdc124f756f9ca86b2ea297fd03f623
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 19d20f4b
......@@ -503,9 +503,7 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
highlight.setAlphaF(0.3);
painter->setBrush(highlight);
painter->setRenderHint(QPainter::Antialiasing);
QRectF rect = option->rect;
rect.translate(0.5, 0.5);
painter->drawRoundedRect(rect.adjusted(2, 2, -3, -3), 2, 2);
painter->drawRoundedRect(option->rect.adjusted(2.5, 2.5, -2.5, -2.5), 2, 2);
}
}
}
......
Markdown is supported
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