Fix compilation with QT_NO_ACCESSIBILITY.

Task-number: QTBUG-27860

Change-Id: If3b17e7c5dcba69c351025d97c7ab43498c9dcda
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
Friedemann Kleint 2013-02-20 17:24:22 +01:00 committed by The Qt Project
parent 17501e09b9
commit 8b29c7539d

View File

@ -520,7 +520,11 @@ void QWindowsVistaStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt
}
break;
case PE_Frame: {
#ifndef QT_NO_ACCESSIBILITY
if (QStyleHelper::isInstanceOf(option->styleObject, QAccessible::EditableText)) {
#else
if (false) {
#endif
painter->save();
int stateId = ETS_NORMAL;
if (!(state & State_Enabled))