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:
parent
4824c74b34
commit
c2bdfc3884
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user