From 889a040366741365d76de9dc88358382564f17bc Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 18 Sep 2014 12:33:44 +0300 Subject: [PATCH] ManhattanStyle: Use QRectF instead of QRect for adjustment Broken in 6f7a6282e59a82e4c7609c0090da05f5da1dda91 Change-Id: I752295af28494efe3eb59ef31b111a0079d47ff7 Reviewed-by: Tobias Hunger --- src/plugins/coreplugin/manhattanstyle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp index 3037ed549dd..588eb3cc514 100644 --- a/src/plugins/coreplugin/manhattanstyle.cpp +++ b/src/plugins/coreplugin/manhattanstyle.cpp @@ -503,7 +503,8 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption highlight.setAlphaF(0.3); painter->setBrush(highlight); painter->setRenderHint(QPainter::Antialiasing); - painter->drawRoundedRect(option->rect.adjusted(2.5, 2.5, -2.5, -2.5), 2, 2); + const QRectF rect = option->rect; + painter->drawRoundedRect(rect.adjusted(2.5, 2.5, -2.5, -2.5), 2, 2); } } }