From 89e2319322e2e29d6297e72431c9327358e3be21 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Mon, 22 Apr 2013 23:28:06 +0200 Subject: Don't do any transitions if the widget is disabled On Windows 8 it would end up changing the look of the QLineEdit when the mouse hovered over it even though it was not enabled. None of the Windows platforms show the lineedit changing when hovered over if it is disabled so we can skip the whole thing. Task-number: QTBUG-29224 Change-Id: Ib9495bf395477f114e91b744e1b1209c9e11f336 Reviewed-by: J-P Nurmi --- src/widgets/styles/qwindowsvistastyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/styles/qwindowsvistastyle.cpp b/src/widgets/styles/qwindowsvistastyle.cpp index f65e52305c..b08eab580d 100644 --- a/src/widgets/styles/qwindowsvistastyle.cpp +++ b/src/widgets/styles/qwindowsvistastyle.cpp @@ -314,7 +314,7 @@ void QWindowsVistaStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt return; } - if (d->transitionsEnabled() && canAnimate(option)) { + if ((option->state & State_Enabled) && d->transitionsEnabled() && canAnimate(option)) { { QRect oldRect; QRect newRect; -- cgit v1.2.3