forked from qt-creator/qt-creator
ManhattanStyle: Simplify focus frame drawing
Change-Id: I61ca02b7cbdc124f756f9ca86b2ea297fd03f623 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
19d20f4b70
commit
866a99b655
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user