ManhattanStyle: Simplify focus frame drawing

Change-Id: I61ca02b7cbdc124f756f9ca86b2ea297fd03f623
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Orgad Shaneh
2014-09-17 10:33:11 +03:00
committed by Orgad Shaneh
parent 19d20f4b70
commit 866a99b655

View File

@@ -503,9 +503,7 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
highlight.setAlphaF(0.3); highlight.setAlphaF(0.3);
painter->setBrush(highlight); painter->setBrush(highlight);
painter->setRenderHint(QPainter::Antialiasing); painter->setRenderHint(QPainter::Antialiasing);
QRectF rect = option->rect; painter->drawRoundedRect(option->rect.adjusted(2.5, 2.5, -2.5, -2.5), 2, 2);
rect.translate(0.5, 0.5);
painter->drawRoundedRect(rect.adjusted(2, 2, -3, -3), 2, 2);
} }
} }
} }