From ce68ca86f252f69a89a6bbcd1b125ee0aa87974c Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 30 Nov 2012 18:53:15 +0100 Subject: [PATCH] Fix compile when we use QT_NO_ACCESSIBILITY Change-Id: I2d304fa6d91d86130eeb4a4aa07b43173d240312 Reviewed-by: David Faure --- src/gui/accessible/qaccessible.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index c21f2ad7075..f55037c37af 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -422,10 +422,12 @@ QT_BEGIN_NAMESPACE /* accessible widgets plugin discovery stuff */ +#ifndef QT_NO_ACCESSIBILITY #ifndef QT_NO_LIBRARY Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, (QAccessibleFactoryInterface_iid, QLatin1String("/accessible"))) #endif +#endif Q_GLOBAL_STATIC(QList, qAccessibleFactories) @@ -586,9 +588,11 @@ QAccessibleInterface *QAccessible::queryAccessibleInterface(QObject *object) if (QAccessibleInterface *iface = factory(cn, object)) return iface; } +#ifndef QT_NO_ACCESSIBILITY #ifndef QT_NO_LIBRARY if (QAccessibleInterface * iface = qLoadPlugin1(loader(), cn, object)) return iface; +#endif #endif mo = mo->superClass(); }