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(); }