From: Friedemann Kleint Date: Mon, 5 Nov 2012 09:31:52 +0000 (+0100) Subject: QWindowsVistaStyle: Restore altered brush origin. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96ebbad5f03d6db5fa81f284ccbdaf4b6259c27b;p=profile%2Fivi%2Fqtbase.git QWindowsVistaStyle: Restore altered brush origin. The line to restore it was missing, and the leftover variable caused a warning, which was removed in abe5a0a432116963d22c4ef501a4dfd2393d66fb . Task-number: QTBUG-27828 Change-Id: I00b8b89b07bec38a1660c3a9c61220b6d0d7eb48 Reviewed-by: Miikka Heikkinen --- diff --git a/src/widgets/styles/qwindowsvistastyle.cpp b/src/widgets/styles/qwindowsvistastyle.cpp index f6648be..022fb93 100644 --- a/src/widgets/styles/qwindowsvistastyle.cpp +++ b/src/widgets/styles/qwindowsvistastyle.cpp @@ -715,8 +715,10 @@ void QWindowsVistaStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt QPixmap pixmap; if (vopt->backgroundBrush.style() != Qt::NoBrush) { + const QPointF oldBrushOrigin = painter->brushOrigin(); painter->setBrushOrigin(vopt->rect.topLeft()); painter->fillRect(vopt->rect, vopt->backgroundBrush); + painter->setBrushOrigin(oldBrushOrigin); } if (hover || selected) {