Fix compile when we use QT_NO_ACCESSIBILITY
Change-Id: I2d304fa6d91d86130eeb4a4aa07b43173d240312 Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
parent
5f03e89b74
commit
ce68ca86f2
@ -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,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<QAccessibleInterface, QAccessiblePlugin>(loader(), cn, object))
|
||||
return iface;
|
||||
#endif
|
||||
#endif
|
||||
mo = mo->superClass();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user