QWindowsVistaStyle: fix checkbox animations for QtQuick Controls

Change-Id: I740dfab748fe9cc79a861c549030ff9e9e608df2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
This commit is contained in:
J-P Nurmi 2013-03-21 18:40:56 +01:00 committed by The Qt Project
parent 4824c74b34
commit c2bdfc3884

View File

@ -377,8 +377,9 @@ void QWindowsVistaStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt
// The end state of the transition is simply the result we would have painted
// if the style was not animated.
styleOption->styleObject = 0;
styleOption->state = option->state;
drawPrimitive(element, styleOption, &endPainter, widget);
proxy()->drawPrimitive(element, styleOption, &endPainter, widget);
t->setEndImage(endImage);