summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/accessible/qaccessible.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp
index c21f2ad707..f55037c37a 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<QAccessible::InterfaceFactory>, qAccessibleFactories)
@@ -586,10 +588,12 @@ 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<QAccessibleInterface, QAccessiblePlugin>(loader(), cn, object))
return iface;
#endif
+#endif
mo = mo->superClass();
}