Commit 889a0403 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger

ManhattanStyle: Use QRectF instead of QRect for adjustment

Broken in 6f7a6282e59a82e4c7609c0090da05f5da1dda91

Change-Id: I752295af28494efe3eb59ef31b111a0079d47ff7
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent ca6a7663
......@@ -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);
}
}
}
......
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