ManhattanStyle: Use QRectF instead of QRect for adjustment

Broken in 6f7a6282e59a82e4c7609c0090da05f5da1dda91

Change-Id: I752295af28494efe3eb59ef31b111a0079d47ff7
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-09-18 12:33:44 +03:00
committed by Tobias Hunger
parent ca6a766314
commit 889a040366

View File

@@ -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);
}
}
}